Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to enter specials values in a combobox rowsource
Message
 
To
15/03/2004 04:49:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00886226
Message ID:
00886228
Views:
17
This message has been marked as the solution to the initial question of the thread.
You must use .AddItem() to add this values:
 DIMENSION myItems[3,2]
 myItems[1,1] = "TAB"
 myItems[1,2] = 9
 myItems[2,1] = ";"
 myItems[2,2] = 44
 myItems[3,1] = ","
 myItems[3,2] = 59

WITH thisform.Combo1
    .RowSourceType = 1
    FOR i = 1 TO ALEN(myItems,1)
        .AddItem("  ")
        .AddListItem(myItems[i,1],i,1)
        .AddListItem(myItems[1,2],i,2)
    ENDFOR
ENDWITH
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform