Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List boxes (sample)
Message
From
22/09/1999 03:12:35
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
21/09/1999 20:24:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00267397
Message ID:
00267455
Views:
21
>While trying to learn VFP, I copied the vfp/sample/controls files to my directory and tried to get the listmover form to work with my tables. I thought I could just change the Rowsource to File.Field and the RowSourceType to 6-Fields. It displays the proper data, but the 'mover' part of it doesn't work. If I double click on the source list, nothing happens. Or if I choose the add arrows, nothing happens. What else needs to be changed in order for it to work.
>(I removed the form's INIT code that filled the source list box with the 'one', 'two', 'three', etc. data.)


Mary,
This is as is from its "behind the scenes" :

To be able to add and remove items from lists, the RowSourceType of the lists must be set to 0 - None. If you want to fill the list box with array elements or values from a table, you can use code like the following:
*array
FOR i = 1 to ALEN(myarray)
	List.AddItem(myarray[i])
ENDFOR

*table
SCAN
	List.AddItem(table.field)
ENDSCAN
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform