Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List boxes, inserting into table
Message
From
16/10/1999 17:50:51
 
 
To
16/10/1999 15:52:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00277295
Message ID:
00277317
Views:
25
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..."
Previous
Reply
Map
View

Click here to load this message in the networking platform