Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Initializing a Variable in a form
Message
From
10/04/2004 14:24:26
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
 
 
To
09/04/2004 13:56:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00893560
Message ID:
00893847
Views:
22
Tamar:

I take it my suggestion is a bad idea and I should not add it to the UT Wish List. Here's my issue.

Lets say I am setting up a default value of date() for a memory variable called dseldate.

If I were writing a .prg file I could initilize the variable at the beginnng of the .prg file with dseldate = date() and it would be in scope throughout the .prg.

Now in a form I have to create a form property called dseldate, initialize it in Init and throughout I have to call it thisform.dseldate.

Wouldn't it be more consident and easier if we could just initialize a variable in a form and have it in scope within the form without having to create a form property and call it thisform.dseldate all the time?

Is this a bad idea that is against proper programming style? I don't want to add this to the UT Wishlist if it is a bad idea.

Mike Smith
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform