Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox - ControlSource (VfP6)
Message
From
10/05/2002 10:02:47
 
 
To
10/05/2002 09:54:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00654950
Message ID:
00655042
Views:
25
>>>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.
>
>:) Probably I'd do to add to combo class if I'd use array.
>As I said my preference is SQL cursors which union displayvalue to previous set (I don't like limits nor accesing awfully slowly via list()).
>Cetin

Thanks, I've got the combo class based on array working - once I've done the mods to use the new class, I'll look at the autocomplete function - if that's slow, I'll look at converting to SQL cursors.

Again, thanks for the help.
Len Speed
Previous
Reply
Map
View

Click here to load this message in the networking platform