Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can call a function from DEFINE class?
Message
From
06/05/2024 11:57:39
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
06/05/2024 11:07:29
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01687987
Message ID:
01687997
Views:
34
>Dragan,
>
>Functions and methods are different constructs and - even if they look alike they should be mixed in no way.
>
>A method call with a return value might look like function call, but I like to give you a most simple difference.
>
>A method is part of a object. An object belongs to a datasesssion, and, for that, to all SET and SYS commands that are special for this datasession. Also the cursors open might differ.
>
>A function, on the other hand always to the datasession you call the function from.
>
>Also, it's the idea of objects that an object carries data (properties) and methods that deal with those data. This concept is weakened over time, but one still should remember it.
>
>
>tl;dr;
>You get a return value from a objects method. Do not mix this wording. Also do not mix the meaning.

You're right, specially that thing about datasessions. Just as I read what you wrote, few old wounds reminded me of their origin...

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform