Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating Cursor
Message
From
02/07/2003 13:15:22
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00806038
Message ID:
00806203
Views:
16
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform