General information
Category:
Coding, syntax & commands
Nadya,
Here is code that will only let 5 characters be entered into each line of the edit box. Again ekp is only a variable. It's value needs to be set to zero in the init event of the editbox.
If nKeyCode = 13 Then
If ekp < 4 Then
MessageBox("Must Be five characters")
NoDefault
Else
ekp = 0
EndIf
Else
If ekp = 4 Then
KEYBOARD'{Enter}'
Else
ekp = ekp + 1
EndIf
EndIf
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