No, I haven't tried a stable between the two C's yet.  But most of the time,
both C's are dragged to the incorrect field anyway.  So I'm not sure that
will correct the problem.

In the meantime I did try the wait 0.5.  That didn't seem to work, so I
tried wait 1.  My script then processed about 100 or so records without an
error.  This may actually be the solution to my problem, but I still do not
understand why the C's are being keyed to that field in the first place.  

Thanks to everyone who helped.  If anyone knows why this occurred in the
first place, I would be very curious as to know.  Just call me the curious
programmer :)  

______________________________
 
Christopher C. White
Interface Analyst III
Newberry County Memorial Hospital
(803) 405-1052
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marinelli, Melissa
Sent: Tuesday, May 24, 2005 4:17 PM
To: [email protected]; [EMAIL PROTECTED]
Subject: RE: [Talk] Entry not define errors


The F10 works for Magic, but not C/S, I believe.
Did you try adding a Stable between the two "C"'s that you are keying?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of chris white
Sent: Tuesday, May 24, 2005 2:59 PM
To: [email protected]; [EMAIL PROTECTED]
Subject: RE: [Talk] Entry not define errors


{f10} doesn't appear to clear a field.  It brings up Links in my
Meditech CS.  I didn't realize there was a PF key that would clear a
field.

______________________________
 
Christopher C. White
Interface Analyst III
Newberry County Memorial Hospital
(803) 405-1052
 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bill Palmer
Sent: Tuesday, May 24, 2005 12:44 PM
To: [email protected]; [EMAIL PROTECTED]
Subject: RE: [Talk] Entry not define errors

Actually I think it is a brilliant thing to do.  Here's why, that's what
I do.  No but really as programmers we often get into trouble when we
make assumptions.  By clearing a field before keying data into it you
make sure you only have what you want in the field.  I consider it
similar to initializing a variable.


Bill Palmer
Financial Coordinator, Information Sys
Mid-Columbia Medical Center
The Dalles, OR 97058
541-296-7417

>>> [EMAIL PROTECTED] 05/24/05 09:24AM >>>
Chris,
 
I don't see the problem, with what you have, but a way to get around it
may be to Key "{F10}" before each time you enter the "N"  to clear the
field.
 
I know this is not a brilliant thing to do, but it will have your script
keep moving.
 
Roy Hayward
Catalyst Application Support 
Global Healthcare Exchange
3322 West End Avenue
Suite 1000
Nashville, TN 37203
615-279-2752 direct
931-670-0867 home
615-525-6746 cell
[EMAIL PROTECTED] 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of chris white
Sent: Monday, May 23, 2005 1:49 PM
To: [email protected] 
Subject: [Talk] Entry not define errors



OK all, I'm at a loss.  Is it me, or am I just missing something?

 

The following subscript is part of a larger script that I wrote and has
been running without issue for sometime.  But, for the last few weeks, I
have had issues where when processing an Account within Meditech BAR and
keying CC (Collections, E/E Comments).  The next field is the Comment
field on the Enter / Edit Comments Meditech window.  I want to key an
"N" every time, but for whatever reason it periodically drags one of the
"C"s along with it. Which of course gives me an "Entry is not defined"
error window.  What am I missing here?  

 

Any suggestions would be appreciated.  I'm Meditech CS v5.4

 

Thanks  

 

 

Sub EnterComments(pComment As String)

Do

    Stable 0.4

    PauseLoop "@7,7", Trim(D("1")) & "~"

    If At("@27,93") Then

        Activate "Process an Account"

        Key "CC"

    End If

    PauseLoop "@6,15", "N~"

    PauseLoop "@6,45", "{tab}"  'add for 5.4 Meditech release

    PauseLoop "@8,15", "{tab}"

Loop Until At("@9,28")

Key pComment

Enter strDate

Pause "@9,28"

Key "{f12}"

Pause "[EMAIL PROTECTED],1"

Key "Y"

Pause "[EMAIL PROTECTED],1"

Key "o"

Pause "@27,93"

Key "{esc}"

Pause "[EMAIL PROTECTED],1"

Key "Y"

Pause "@7,7"

D("Status") = "Done"

End Sub

 

______________________________

 

Christopher C. White

Interface Analyst III

Newberry County Memorial Hospital

(803) 405-1052

 

 




Reply via email to