Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning data from a form
Message
 
To
21/01/1997 16:04:32
Paul Watson
Mcv Global Systems, Inc.
Pasadena, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00018006
Message ID:
00018018
Views:
38
>In my form's INIT method I have the following code:
>
>PARAMETERS dStartDt, dEndDt, cTitle
>ThisForm.dStartDate = dStartDt
>ThisForm.dEndDate = dEndDt
>
>You can't use PARAMETER ThisForm.dStartDate....
>
>So, how can I keep the parameters "alive" once the INIT method completes?
>
>Sorry if I'm being thick headed :-)

use properties in your subform. in your init, say

thisform.subStartDate = dstartdt
thisform.subEndDate = denddt

they will then be available throughout this form.
if you save the form as a class and use createobject(), you won't need to pass by reference. you can get the values after you exit the form by looking at these properties before releasing the form object...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform