Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox - ControlSource (VfP6)
Message
From
10/05/2002 09:54:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
10/05/2002 09:20:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00654950
Message ID:
00655039
Views:
32
>>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform