Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Put data in a list box into a table
Message
From
18/04/2007 21:56:07
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Put data in a list box into a table
Miscellaneous
Thread ID:
01217585
Message ID:
01217585
Views:
71
I have a form with with a mover control. I have it working so that I can move data from source to selected side of the mover. I know how many items I selected. It displays the contents of two fields. An account number and a description. I need to put the selected contents into a table in the following steps if something is selected
1. delete existing data in table, I assume I can do this with the commands
IF USED('TABLE')
   USE IN TABLE
ENDIF
USE TABLE IN O EXCLUSIVE
SELECT TABLE
GOTO TOP IN TABLE
DELETE ALL
PACK
is this correct?

What I am not sure how to do is get the items in the selected list an put the them in TABLE. To put items in to the TABLE I assume if I could use the commands
GOTO BOTTOM IN TABLE
APPEND BLANK
REPLACE accountno WITH lcaccount , description WITH lcdesctiption 
My problem is how to go through the selected items to find lcaccount and lcdescription.

Any help appreciated.
Next
Reply
Map
View

Click here to load this message in the networking platform