KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: How to display quotes through the language
PRODUCT: 4D | VERSION: | PLATFORM: Mac & Win
Published On: December 6, 2002

Compatibility: Version 6.8.x and 6.7.x

By default, 4D uses quotes to recognize the beginning and ending of Strings in the method editor. In order to get 4D to display quotes through the language, you must use the command CHAR and pass it the ASCII code for the quote character.

ALERT("Whatever")  `will return an alert box with Quote in it
ALERT(""Whatever"")  `will not work
ALERT(Char(34)+"Whatever"+Char(34))  `will return an alert box with "Quote" in it

ASCII CODES
https://ftp.4d.com/aci_Technical_notes/ACIDOC/CMU/CMU10123.HTM