>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