Steve-vfp9user
Programmer
Hello all
I am trying to select a certain field from an array list on a form.
myfile has four fields in the order of FORENAME, SURNAME, POSITION, USERID
I only need the USERID which would then store itself in the field from a table I have selected from the forms builder (field from free table is called ALLOCATED).
So in other words, the form is presented, the list of users are on that form in a list box ordered by FORENAME, I double click on the relevant line I need, that records USERID field is then stored in my fields table called ALLOCATED.
The USERID and ALLOCATED fields are numeric.
I hope that makes sense but if not, please let me know.
Thank you
Steve Williams
VFP9, SP2, Windows 10
I am trying to select a certain field from an array list on a form.
Code:
SELECT * FROM myfile ORDER BY FORENAME INTO ARRAY mytechs
myfile has four fields in the order of FORENAME, SURNAME, POSITION, USERID
I only need the USERID which would then store itself in the field from a table I have selected from the forms builder (field from free table is called ALLOCATED).
So in other words, the form is presented, the list of users are on that form in a list box ordered by FORENAME, I double click on the relevant line I need, that records USERID field is then stored in my fields table called ALLOCATED.
The USERID and ALLOCATED fields are numeric.
I hope that makes sense but if not, please let me know.
Thank you
Steve Williams
VFP9, SP2, Windows 10