Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Initializing a Variable in a form
Message
From
10/04/2004 17:21:34
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
10/04/2004 17:16:10
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00893560
Message ID:
00893861
Views:
25
Hi Mike

In the init do THISFORM.AddProperty("MyVar","")

In other methods, you'd reference it by

?THISFORM.MyVar

>Hilmar:
>
>I tried using "property MyVar" in the init of my form and I get an error message when I try to leave the form.
>
>I think the feeling is that I should drop this thing. I can initialize the variable before I come into the form and the form works fine. So if my suggestion is getting into a bad practice, then I will forget it.
>
>Mike Smith
Previous
Reply
Map
View

Click here to load this message in the networking platform