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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CASL Macro - including whitespace in a string

Status
Not open for further replies.

thorwood

Programmer
Jun 29, 2004
19
GB
Hi,

I am trying to include whitespace in a string. Here is part of my macro:

watch for
"CALL SUPERVISOR" : {}
"? FORMAT" : {}
"INVALID " : invchecker : {}
"RP/": {}
endwatch

I've simplified it, but basically I only want the invchecker procedure to be called if it finds the word "INVALID " on the screen (i.e INVALID followed by five spaces. However, invchecker is being called whenever it sees the word "INVALID" on screen, so its ignoring the whitespace.

Does anyone know if there is anything that can be done to specifically ensure the whitespace is included as part of the string?

Many thanks

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top