Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

keyboard chr(123) error

Status
Not open for further replies.

Pollock

Programmer
Joined
Jun 2, 2000
Messages
49
Location
CA
I am using some buttons for a client to handle foreign language fonts and there uniqueid characters, the buttons each are assigned an ascii value so that when the client clicks on them it takes the button value and issues the KEYBOARD CHR(this.asciivalue) the problem comes up when I want to do CHR(123) which is { and chr(125) which is }. These buttons generate the appropriate character in a text box. Does any body know of a work around to this as KEYBOARD chr(123) or KEYBOARD chr(125) return an error MISMATED BRACES IN KEY VALUE.
 
Because chr(123) and chr(125) are the { and } characters respectively and these are used by the Keyboard command to specify predefined characters, it doesn't work with these. The work around is to use the predefined special characters LBRACE and RBRACE. Try:
Code:
KEYBOARD '{LBRACE}' && chr(123)
KEYBOARD '{RBRACE}' && chr(125)
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top