Steve-vfp9user
Programmer
Hello
I have been looking for a way to use a text field on a form where the user can start entering a four digit code and reference to it either appears to confirm the correct code or a look up can be used if not sure.
These are two examples I found:
The codes are stored in a table called NOMCODES with fields:
NOMURN N(10)
NOMINAL C(4)
NOMDESC C(70)
The codes are stored in an array using:
I have tried several ways of doing this by putting a list box on the form which shows the codes and using the builder option where you select from the list box which populates the required field and the examples I have shown above use fields from a table.
I'm a little lost on this one (as you can probably see) but all I'm trying to achieve is:
The user starts typing the code, ideally it would be shown as a label next to the text box or alternatively if the code is not known, I can use a look up table/grid with some sort of incremental search, the information from table NOMCODES field NOMINAL is subsequently stored in table MYTABLE field NOMINAL etc.
I am aware of the incremental search as a seperate entity (
Your suggestions would be appreciated.
Thank you
Steve
I have been looking for a way to use a text field on a form where the user can start entering a four digit code and reference to it either appears to confirm the correct code or a look up can be used if not sure.
These are two examples I found:
The codes are stored in a table called NOMCODES with fields:
NOMURN N(10)
NOMINAL C(4)
NOMDESC C(70)
The codes are stored in an array using:
Code:
DIMENSION mynoms(1)
IF file("nomcodes.dbf")
SELECT NOMINAL FROM nomcodes ORDER BY NOMINAL INTO ARRAY mynoms
ELSE
* Show error message etc
RETURN
ENDIF
I have tried several ways of doing this by putting a list box on the form which shows the codes and using the builder option where you select from the list box which populates the required field and the examples I have shown above use fields from a table.
I'm a little lost on this one (as you can probably see) but all I'm trying to achieve is:
The user starts typing the code, ideally it would be shown as a label next to the text box or alternatively if the code is not known, I can use a look up table/grid with some sort of incremental search, the information from table NOMCODES field NOMINAL is subsequently stored in table MYTABLE field NOMINAL etc.
I am aware of the incremental search as a seperate entity (
Your suggestions would be appreciated.
Thank you
Steve