Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thisform.INIT variable scoping
Message
From
02/05/2007 13:23:57
 
 
To
02/05/2007 13:12:07
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01221866
Message ID:
01221880
Views:
18
>Nope. Put it in the load of the form, but better, create a form property and use it instead.
>
Maybe I'm misunderstanding.

Are you saying that a variable created in the Load is in scope for the rest of the form?? I didn't think that was the case -- iow....creating the form property is the only way to create a "variable" scoped to the form.

>
>>Been out of work or working so much in old FPW that I have forgotten this. I set a variable in the INIT of a form and it is then out of scope when the INIT is exited. I thought if I set it in the INIT it would remain in scope for all of the form's members. Thanks!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform