>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:
FOR i = 1 to ALEN(myarray)
List.AddItem(myarray[i])
ENDFOR
SCAN
List.AddItem(table.field)
ENDSCAN
Cetin