Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List boxes, inserting into table
Message
De
16/10/1999 17:50:51
 
 
À
16/10/1999 15:52:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00277295
Message ID:
00277317
Vues:
26
Thank you so much Cetin.

>>Trying to insert the items in my list to a table. Tried several things, this is the LATEST. What am I doing wrong?
>>
>>WITH THISFORM.mylistmover1.lstselected
>> SCAN
>> store THISFORM.mylistmover1.lstselected.list(THISFORM.mylistmover1.lstselected.listindex) to item
>> insert into test (component) value (item)
>> ENDSCAN
>>ENDWITH
>
>
Mary,
>This code would only insert the current selected item if test is current table. If current table is something else then current selected item would be inserted repeatedly into test for reccount("current_table").
>
>
WITH THISFORM.mylistmover1.lstselected
>  for ix = 1 to .ListCount
>      insert into test (component) values (.List(ix))
>  endfor
>ENDWITH
Cetin
"Live Well, Laugh Often, Love Much..."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform