×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Waitfortext1 -- How on earth does the RegularExpression option work?

Waitfortext1 -- How on earth does the RegularExpression option work?

Waitfortext1 -- How on earth does the RegularExpression option work?

(OP)
Hi!

I hope some expert out there can point me in the right direction.

I'm using Reflections 14, and need to do a check on the appearance on text that could start at column 1 OR column 2 (no way to find out which until it appears).

The method: WaitForText1 would work, but... it requires the specific location however--and will time out if I "miss" the right column for a given check for the text.

There is, however, an intriguing but(as far as I can tell) never documented "textComparisonOption_RegularExpression" option to the WaitForText1 method. I'm hoping that once I know how it works, I can handle the situation, by regexp'ing the actual text from the specified area starting at column 1.

Does anyone know how that option works? The Attachmate help page only has a partial description that ends abruptly:
"RegularExpression Compares text using a regular expression.
where expression is a variable that represents an"


That's it. And there's not an example to be found anywhere.

Thanks for any light anyone can shed!!!

-Daniel

RE: Waitfortext1 -- How on earth does the RegularExpression option work?

Hi,
Thank you for reaching out. We regret to hear that you are having some trouble with using the product. We would be more than happy to help you troubleshoot and get you up and running.

RE: Waitfortext1 -- How on earth does the RegularExpression option work?

Hi,

WaitFor... is probably one of the most misunderstood functions.

1) Read this FAQ carefully to gain a better understanding of HOW to use WaitFor... functions. Make sure you read the quote from the mother site at the bottom.
FAQ99-7887: Why WAIT? Or how long should I WAIT?

2) Here's the documentation for WaitForText1.
https://www.microfocus.com/documentation/reflectio...

3) With the uncertainty of which column the text will appear in, just use an Or in your loop...

CODE

Do Until oScreen.WaitForText1(, text, row, col1) Or oScreen.WaitForText1(, text, row, col2)
    DoEvents 
Loop 

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein

You Matter...
unless you multiply yourself by the speed of light squared, then...
You Energy!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close