Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning a value from a class form
Message
From
14/11/2001 18:23:45
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00579966
Message ID:
00581840
Views:
49
>>>>
>>>>The key word is in bold...why take the chance?
>>Or, put another way, what specific requirement do you have that is best overcome by a public variable?
>
>In projects where I hard-code the form GUI's, it seems (that) runtime won't recognize them unless the name is declared public. I try not to do it, but runtime hiccups - and then I have to.

Terry,

That might be because PUBLIC actually does create a variable whereas PRIVATE does not - it only causes any similarly named variable previously created to be hidden from here down.

You may get the result you need by declaring a PRIVATE and then actually creating a memvar with the PRIVATEd name.

Goos luck
Jim Nelson
Previous
Reply
Map
View

Click here to load this message in the networking platform