Boston WorkStation’s equivalent code is a little different and, I think, a little simpler:

 

Do

      If At("Enter employee maximum amount") Then Do_something_1

      If At("Enter employee flat amount”) Then Do_something_2

      Wait .2     ‘let’s the application “breath”

      C= C + 1: if C > 50 Then Do_something_for_a_timeout   ‘times out in 5 seconds

Loop Until At(“OK”)

 

Where “OK” is the prompt you get when application continues on.  Note also that the different At commands can look for things in different parts of the screen, not just at the prompt as in the example below.

 

Rich McNeil

Boston Software Systems

866 653 5105

www.bostonworkstation.com

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dwight Clevenger
Sent: Tuesday, August 26, 2003 8:26 AM
To: [EMAIL PROTECTED]
Subject: [Talk] Help with coding

 

I'm still hanging on to some Microscript apps that I haven't converted yet. I need to know how to handle the WaitFor() function from Microscript Workstation ver 5.0 here is a small code sample:

 

    intResult5 = DS1.WaitFor(-1, -1, "Enter employee maximum amount", _
            "Enter employee flat amount", 1000)
   Select Case intResult5
        Case 1
                      Do something

       Case 2
                     Do something

       Case Else

                     Do something
   End Select    '}-> Select Case intResult5
This piece of code waits for multiple strings to appear at the transaction line (Star McKesson). In this case 2 different strings. If the first string is found, a value of 1 is stored in intResult5. If the second string is found, a value of 2 is stored in intResult5. Screen flow is controlled by passing the value of intResult5 to a Select Case statment.

 

What would be the equivalent function, coding in BWS.

 

Thanks,

 

Dwight Clevenger
Senior System Analyst
Baptist Health System
San Antonio, TX.
210-297-1663
[EMAIL PROTECTED]


This email and any files transmitted with it may contain information
that is PRIVILEGED AND CONFIDENTIAL. It is the property of the
Baptist Health System and is intended only for the use of the intended
recipient. If you have received this email in error, do not
disseminate, distribute, forward, print or copy this email or any of
its' attachments. Immediately destroy/purge the email and all
attachments and notify the sender by reply of email. Any misuse/abuse
may result in disciplinary action and/or legal liability. Unauthorized
interception of this email is a violation of federal law.

Reply via email to