Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to enter specials values in a combobox rowsource
Message
 
À
15/03/2004 04:49:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00886226
Message ID:
00886228
Vues:
18
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform