Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating Cursor
Message
De
02/07/2003 13:15:22
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00806038
Message ID:
00806203
Vues:
15
with thisform.pageframe1.page2.List2
for ix=1 to .Listcount
if .Selected[ix]
insert into temp1 values (.List(ix) )
endif
ENDFOR


In addition to what Andy told you, you will need to make sure that your RowSOurce for the ListBox has 2 columns, one for key1 and one for key2.
FOR ix = 1 TO .ListCount
 IF .Selected[ix]
   INSERT INTO temp1 ( key1, key2 ) VALUES ( .List[ ix, 1 ], .List[ ix, 2 ] )
 endif
ENDFOR
Note that if the data type in the cursor are not character strings, you will need to convert the values in the list box's internal list from character to numeric using the VAL() function.

The values in a List Box are always stored in its internal list in Character format.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform