Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List boxes, inserting into table
Message
De
16/10/1999 15:52:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
16/10/1999 15:40:41
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:
00277297
Vues:
22
>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
Ç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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform