Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting Multiple File
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00272857
Message ID:
00273009
Views:
27
>I've been trying to write a form that will allow a user to select multiple datafiles and store them in an array. I'm using a listbox to display the selected files and I have an add button that uses getfile() and AINS to insert the selected file into the array. AINS is working, but after I refresh the control or the entire form, the listbox only displays the number of elements that the form started with. The array is updated and if I quit the form then come back all of the elements are there. Initially I had the numberofelements set to =alen(ArrayName), that did not work, so I tried hard coding it to 30 and that did not work. Any ideas?
>
>Also in programming the Delete button, a List Box normally returns the contents of the item selected. Is there anyway for it to return the array position? I know it returns the array position if the control source is a database field, but how can I return the array position if the control source is a memory variable?

ASCAN(myarray,listbox.value) should return the array position
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform