Check for string value "{" creating error....

Doug Johnson

New Member
Progress V.91E - Windows XP sp2

I'm trying to check for the existence of the character "{" in a string. But when I do:

Code:
IF SUBSTRING(thestring,1,1) EQ "{" THEN .....

I get an unmatched curly braces error. How do I escape the {? Or, can something else be done?

Thanks!
 

Cringer

ProgressTalk.com Moderator
Staff member
Code:
DEFINE VARIABLE thestring AS CHARACTER   NO-UNDO.

thestring = "~{1234~}".

IF SUBSTRING(thestring,1,1) EQ "~{" THEN
  MESSAGE 123
    VIEW-AS ALERT-BOX INFO BUTTONS OK.
 
Top