Title: Help: Eval field & key down if not equal to value

Morning!

I'm trying to get my script to evaluate a field - if the data in that field isn't equal to a certain string, then the script should key down to the next field in the list and evaluate it for the same string. This is what I've tried and it goes to the Else statement each time, even when the If statement is true. Even though the field position starts at 9,1, I'm using zero for the row because I don't know at what position the string will read "HUB.CAM". Could that be the problem?

Pause "@9,1"
Stable 2
Do Until View(Row:=0, col:=1, length:=7) = "HUB.CAM"
   Stable 2
   If View(Row:=0, col:=1, length:=7) = "HUB.CAM" Then
       Tab_ ""
       Pause "@0,22"
       Tab_ ""
       Pause "@0,26"
       Enter "zcus.clinician.menu"
    Else
       Key "{DOWN}"
    End If
Loop

I've also tried

While View(Row:=0, col:=1, length:=7) <> "HUB.CAM"
   If blah Then
      blah
   Else
      blah
   End If
Wend

Any help is appreciated.
Thanks
Michelle

617-665-3432
Clinical Application Analyst
Cambridge Health Alliance
Information Technology Dept.
[EMAIL PROTECTED]
617-546-7770 pgr.

Reply via email to