Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to define a dynamic array
Message
From
14/06/2004 20:38:03
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00911025
Message ID:
00913699
Views:
16
>Hi,
>
>
>>>I set the RowSource of the combobox control to laMyArray and the RowSource to 5 (Array)
>
>If the array is not public it will go out of scope. Best make the array a property of the form..

My preference for these cases is to have the array as a property of the combo itself.
* combo.init
Select * from (this.calias) Into Array This.aspg
This.RowSourceType= 5
This.RowSource="this.aSPG"
The combo already has two properties, aSpg[1,1] and cAlias - and I only have to fill the latter. The SQL statement may differ from case to case. Of course, I had to subclass the combo to make this reusable, but that's not really necessary. I could have added these properties in combo's init as well.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform