>>>>Hi everybody,
>>>>
>>>>I could not find this info in Help on Format, though I remember, I saw it there. I have a field Status in a table, which could be either A or I (Active/Inactive). I don't want to use combobox for this, so I need to restict textbox values. I can do it in KeyPress event, but I want something simpler...
>>>>
>>>>Could you please help me?
>>>>
>>>>Thanks in advance.
>>>
>>>Put '@M' in the Format property and the list of values separated by commas into InputMask property
>>
>>Thanks, it works, however, I can not delete value. Also M Included for backward compatibility and not documented.
>
>It's nice to have Foxpro 2.6 help file around, don't you think? :)
>To get 'Delete' key to work add comma to the end of the list in the InputMask and following code to the textbox keypress event. It works but I didn't test it extensivly.
>
LPARAMETERS nKeyCode, nShiftAltCtrl
>If nKeyCode = 7
> DO Case
> Case This.Value = "A"
> Keyboard '{SPACEBAR}{SPACEBAR}'
> Case This.Value = "I"
> Keyboard '{SPACEBAR}'
> Endcase
>EndIf
>
Thanks, I'll try.
>BTW, how do you lik my picture? :)
You want my honest opinion? :) I thought, you're younger... :)
How was your trip in Boston, BTW?
If it's not broken, fix it until it is.
My Blog