General information
Category:
Coding, syntax & commands
It appears to work.....
I did this:
IF LASTKEY()=ASC('-')
thisform.Caption=thisform.Caption+"-"
ENDIF
But, this works equally well
case nKeyCode=45
thisform.Caption=thisform.Caption+"-"
Are you aware of any advantage of one over the other?
Many thanks,
Greg
>It is 45. You can do ? INKEY(10) from the command window to verify.
>
>>I'm building an incremental search. One of the fields is an 18 character field that contains part numbers like 4505BCC5576-A11145. I can incrementally search until I hit the dash (-).
>>
>>Is there an inkey() value for the dash (-)?
>>If not how can this be handled?
>>
>>I'm trapping the keys entered in the KeyPress event of this textbox and replacing the forms caption with the letters/numbers as they are entered, then using =seek to incrementally search.
>>
>>Many thanks,
>>Greg
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only