If the next desired field is 'Additive;, then why do you have the Enter, Wait 
at the top of the second loop between the two fields?

Neal Quinn
Montefiore Medical Center
  ----- Original Message ----- 
  From: Gary Hall 
  To: [email protected] 
  Sent: Tuesday, August 28, 2007 4:16 PM
  Subject: [Talk] Easy, but can't figure it out?


  I have the following two little loops:

  Do
         Enter ""
         Wait 0.5
        If At("@8,76") Or At("@8,75") Then
            Wait 0.5
            Key "+{DELETE}"
            Wait 0.5
            Enter gbCarrier
            End If
      Loop
          
      Do
          Enter ""
          Wait 0.5
         If At("@10,76") Or At("@10,75") Then
            Wait 0.5
            Key "+{DELETE}"
            Wait 0.5
            Enter gbAdditive
            End If
      Loop


  The first works perfectly well, it blanks out the field and moves in my 
gbCarrier field.

  The second stops at the next desired field (which happens to be Additive?), 
just meditating there I guess, because it does not then perform the delete & 
the enter gbAdditive. 

  I know this is probably something remarkably easy? What am I doing wrong? 

  I put the Wait commands in because, on occasion (this is a Meditech 
application) it will zing right by the first field. Seems like if I slow it 
down a bit it works OK. 

  Thanks!

  Gary Hall
  Clinical Applications Specialist
  Estes Park Medical Center
  Information Systems Department
  970-577-4443

    

  The information contained in this message may be privileged and confidential 
and protected from disclosure.  If the reader of this message is not the 
intended recipient, or an employee or agent responsible for delivering this 
message to the intended recipient, you are hereby notified that any 
dissemination, distribution or copying of this communication is strictly 
prohibited.  If you have received this communication in error, please notify 
the sender of this communication immediately.

Reply via email to