Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox - ControlSource (VfP6)
Message
From
10/05/2002 09:20:45
 
 
To
10/05/2002 09:12:33
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00654950
Message ID:
00655012
Views:
30
>Class designer is capable of the task. However you might just use a copy of array on form too.
>
>with thisform
>.Addproperty('NewArray['+trans(alen(.myArray))+']','')
>acopy(.myArray,.NewArray)
>.myCombo.rowsource = 'thisform.NewArray'
>endwith
>
>Cetin

Thanks, I'd just worked out how to do it with the class designer (I'd been making the mistake of using DIMENSION when adding the new property)

Doesn't using a copy on the form defeat the point of OOP though. For each instance of my modified combobox I would have to manually place a copy of the array on the form + create a unique name for each copy. If I make it a member of the modified combobox, the creation & initialisation is automatic & there's no need for a unique name.
Len Speed
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform