>I have a form that has a text box to display an entered code. Simple digit 1-7 Each digit has a short text meaning.
>I created mouseenter code to open a Wait window to show what each code means.
>
>WAIT "Option 1 = Make into OER AR"+CHR(13)+;
> "Option 2 = OE Coord. Use Only"+CHR(13)+;
> "Option 3 = Not Applicable"+CHR(13)+;
> "Option 4 = For Information Only"+CHR(13)+;
> "Option 5 = Previous AR"+CHR(13)+;
> "Option 6 = REEF Needed"+CHR(13)+;
> "Option 7 = Preliminary" WINDOW AT MROW(), MCOL() NOWAIT NOCLEAR
>
>And I have the WAIT CLEAR in the mouseexit
>This is all hard coded and not data driven.
>This is all working fine until someone wants to add code for Option 8
>The Option codes and the Words are in a small table.
>I want to make the Wait be data driven.
>Is there a way to make the Wait be created from the table on form init?
Why are you doing this with a textbox? Why not have a dropdown list (that is, a combobox where you can only choose from the items listed). Set it up with the numbers at the front of the items and the user will still be able to type the digit to choose, but when he can't remember, he can open the dropdown.
Tamar