Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Static variable
Message
 
To
24/10/1999 21:35:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00276200
Message ID:
00280851
Views:
16
Vlad,

Perhaps we are talking about two different things. I would love to have STATIC variables available in VFP, but they are not available. Seeing as they aren;t there we need to find the best way to provide the same functionality they provide. The best way, IMHO, to do this is to use an object and a property of that object as a pseudo static variable.

STATIC variables are always LOCAL, they are unavialable to the calling or called routines from the routine that declares them. The difference between a true LOCAL and a STATIC is that the STATIC retains its value between calls.

STATIC members of objects are something different, and I was not discussing them at all. My post was related, strictly, to static variables and how to simulate them since VFP doesn't have them.
Previous
Reply
Map
View

Click here to load this message in the networking platform