Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Couple of novice questions
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00105391
Message ID:
00105581
Views:
36
>1. The variables you assign in methods when you say LOCAL are only around as long as you're in that method, then they're gone. If you want a variable to stick around so you can use it throughout the form you should create a new 'property'. To do this, when you're in the form designer go to the menu and select Form, then New Property. Lets say you named it 'Dollar_Amount'. Now you can say ThisForm.Dollar_Amount = 10 or whatever you want to do with it thoughout the entire form. The other choice is to create a 'Public' variable, but I've heard that this is never a good idea.
>
>2. Yep. As far as I know you're kind of stuck with that one. There could be a way around it, but I've never found it. After a few months you get used to it.


Question 1 was answered by Victor.
Question 2: I do this all the time and it all depends on how you handle it. If I have a form that I've resized (so I can have my tools available) and I select to add code to a method (ie: init or any other method) you have resize the method window, or any window you happen to open. Resize it to any size you want and when you close it, your form designer window will be the same size as it was before you opened the method window. If you reopen the init (in this example) it will still be the size you had it last when you resized it.

Keep in mind, if you open another form and modify a method in this 2nd form, you AGAIN have to resize the edit window, if you don't then the next time you edit a method in your 1st form it will again be maximized. Once you get the hand of it its not too bad but its still a hassle.

Robert
Previous
Reply
Map
View

Click here to load this message in the networking platform