Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing form property by reference
Message
From
10/07/1998 16:43:36
 
 
To
10/07/1998 16:35:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00116288
Message ID:
00116306
Views:
21
>In the calling form:
>
>DO FORM Foo WITH THISFORM TO MyArray
>
>In the Unload() event:
>
>RETURN THISFORM.MyArray
>
>>On the other side of this question is: how do you return a property of a form that is an array? I've tried a lot of combinations and can't seem to get this.

What I need to do is update values in an existing array. the way I am trying to do this is :

DIME aDates(2)
DO FORM GetDates to aDates

then in the GetDates form there is an array property (aSelDates) to contain the values
in the unload event of GetDates I have:

RETURN this.aSelDates

what happens is that the value of aSelDates(1) is returned to both elements of aDates.
Mark Johns
Previous
Reply
Map
View

Click here to load this message in the networking platform