0

I am a new programmer in Centura, I am familiar with the concept of class from C++ or JAVA but I am little bit confused with functional classes in context of windows. Can somebody explain me, what is it and how its works? Thank you

Panagiotis Kanavos
  • 120,703
  • 13
  • 188
  • 236
Miroslav Savel
  • 184
  • 2
  • 10
  • Yes in Centura Developer, my confusion arise from misunderstanding, why there is something like functional class, when i can create an object with methods. What are the differences between functional class and "normal" class? – Miroslav Savel Nov 13 '19 at 12:56
  • 1
    The subject is greater than can be explained here. Go to: https://samples.tdcommunity.net/index.php?dir=Misc/TD_Books/ to download which ever set of manuals is applicable to the version you are running, and the most comprehensive explanation of Functional Classes ( and other types ) is in 'dev.pdf' manual. p.s. 'Centura' has been called 'Gupta Technologies Team Developer', or 'SQLWindows', or 'TD.Net' for about the last 20 years. – Steve Leighton Nov 13 '19 at 21:04
  • 1
    If you would like, here are some v. useful Gupta ( Centura ) resources you cannot live without : https://stackoverflow.com/questions/49371432/gupta-centura-team-developer-guides-manuals-book – Steve Leighton Nov 13 '19 at 21:08
  • @MiroslavSavel Main difference is that functional class doesnot have a message action section but a normal class(window class) have that. – Chandralal Nov 13 '19 at 22:24
  • Also, Functional Classes can be passed around as parameters or UDV's, so the functional class can (say) simply be a data structure - declare the functional class as a UDV User Defined Variable , and pass it as a parameter. That way the entire Functional Class instance gets passed Saves passing each individual variable. Magic. – Steve Leighton Nov 14 '19 at 07:34

2 Answers2

1

Functional class is used to,

1.Create user defined variables.

2.Define behavior(functions) that is shared by more than one window class.

Functional class can be created by right clicking the Classes folder of Teamdeveloper and then select new functional class from the popup menu.

enter image description here

A functional class can be,

  1. Base class of another functional class.

  2. Base class of a window class.

  3. Derived from another functional class, but not from a window class

If behavior needs to be shared by more than one window type, you can place the behavior in a functional class and then derive window classes from that functional class. The derived classes inherit the common behavior as well as behavior appropriate to their window type.

Chandralal
  • 559
  • 2
  • 11
  • 26
1

The subject is greater than can be explained here. Go to: Gupta TeamDeveloper Manuals to download which ever set of manuals is applicable to the version you are running, and the most comprehensive explanation of Functional Classes ( and other types ) is in 'dev.pdf' manual. p.s. 'Centura' has been called 'Gupta Technologies Team Developer', or 'SQLWindows', or 'TD.Net' for about the last 20 years.

Steve Leighton
  • 790
  • 5
  • 15