Code: Select all
// Test der String-Funktionen
LET>a={"xyz"}
IF>{Pos("xy",%a%) > 0}
message>true
ELSE
message>false
ENDIF
I got an Error-Message: "Error - Subroutine/Label %a%) > 0} Not Found !"
Any help appreciated
regards
Joerg
Moderators: Dorian (MJT support), JRL
Code: Select all
// Test der String-Funktionen
LET>a={"xyz"}
IF>{Pos("xy",%a%) > 0}
message>true
ELSE
message>false
ENDIF
Code: Select all
LET>a={"xyz"}
Let>Expr={Pos("xy",%a%) > 0}
IF>Expr=TRUE
message>true
ELSE
message>false
ENDIF
Code: Select all
LET>a={"xyz"}
Let>p={Pos("xy",%a%)}
IF>p>0
message>true
ELSE
message>false
ENDIF
Code: Select all
LET>a=xyz
Position>xy,%a%,1,p
IF>p>0
message>true
ELSE
message>false
ENDIF
I didn't read an advice in the help.It is just because there is a comma in the expression.
But if you are used to C you probably don't need Macro Scheduler.Me_again wrote:If you are used to a something like C then some things in macrosheduler can drive you nuts.
I very much disagree, different tools for different purposes. Also, I was generically referring to the language. Don't forget that there's a whole universe of C programmers out there who have never needed to write a windows or PC program.mtettmar wrote:But if you are used to C you probably don't need Macro Scheduler.Me_again wrote:If you are used to a something like C then some things in macrosheduler can drive you nuts.
Code: Select all
Let>a=xyz
LET>p={Pos("xy",%a%)}
IF>p>0
message>true
ELSE
message>false
ENDIF