Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing an array to a form
Message
 
To
30/06/1999 01:56:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00235291
Message ID:
00235896
Views:
25
John --

Duuuhhhh...never mind! Must've confused your message with another I had just read. Either that, or I read your post just after taking my daily "stupid pill."

8^)

Bill

>Hi Bill --
>
>Ummmmm....what report?
>
>>>
>>>OK...have a situation that I could use some "been there, done that" advice on. I have a selection form and I'd like to store the selected values to an array. I'd like to create the array in the calling method and pass it to the form. I've tried:
>>>
>>>PUBLIC ARRAY aSelected[1]
>>>DO FORM frmSelector WITH @aSelected
>>>
>>>But it bombs. Doesn't like the Byref "@" sign. And I don't like the idea of declaring public memvars to begin with.
>>>
>>>Any suggestions on an alternative architecture? I have it working with PUBLIC ARRAY aSelected[1] and then hard-wiring the reference to aSelected in frmSelector but I don't like to hard-wire memvar references.
>>
>>John --
>>
>>Do you by any chance fire the report from a form, like a "Report Specs" form? If so, I have found that you can refer to the form's properties from within the report, as ThisForm.fcWhatever. This isn't exactly "pure OO" I guess, but it works for me...probably would work in your case, too.
>>
>>HTH -- Bill
Previous
Reply
Map
View

Click here to load this message in the networking platform