Represent the <Blank> and <Space> in an expression

Feb 19 2010

Sometimes, you may need to check if a variable is empty or contains a single space. The question that may easily arise is: "How do I represent <Blank> and <Space> in WinAutomation?"

 

WinAutomation uses the following notations:

%""% (percent, double-quotes, double-quotes, percent): This character combination represents the empty. For example, you may have just read the contents of a text file and stored its contents in a list (each line of the text file is a list item). You can identify if a specific line of the text file is empty by checking if the list item equals to %""%.

%" "% (percent, double-quotes, space, double-quotes, percent): This character combination represents the space character. You can also use this notation to identify if a variable contains a single space, but the most important use of this notation is in the "Replace Text" action: you can use it to replace all spaces in a text with a specific character, or add spaces instead of a specific character.

Your rating: None Average: 5 (3 votes)

Post your comment

You!
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <p>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may quote other posts using [quote] tags.

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.