Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Receiving parameters in form.load
Message
 
To
29/09/1998 12:10:35
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00141973
Message ID:
00142169
Views:
29
No, they ALWAYS go to the INIT. If you need this information for a View, use the NoDataOnLOad property and requery() the view after receiving the parameter.

You can also have a 'AfterInit' property which is set FALSE during design and changed to TRUE at the end of the INIT method. Any code you DON'T want processed before you get your parameters can be surrounded by
IF thisform.AfterInit
   ***  code to process with INIT parameter
ENDIF
Then you can call this code a second time if necessary after the INIT .

Barbara


>I noticed that for form sets I can change the WindowType property to control where the params are received. Is there no such setting for forms?
>
>>>I apologize for the simple question, but I just can't find it in the help:
>>>
>>>how do I receive parameters in the form.load (as opposed to the form.init)?
>>>
>>>
>>>Bob
>>
>>You can set some property value in calling object (form) right before starting new form and check this value in Load event
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform