Title: Message

OK, still confused, but I am surrendering, and accepting on faith (this faith derived from what each of you have said) that my interpretation of the At () help, referenced by the PauseLoop help, is incorrect.

 

From my last reply addressing Corinna’s original suggestions:

 

“If my understanding is correct, the PauseLoop is looking for Discharge time at position 10, 37, as stated by the re-directed reference from PauseLoop to At()

 

·           "[EMAIL PROTECTED],c" is satisfied if the "string" begins at row r, column c

According to all of the replies that I have received, this help is incorrect. It should read

 

            ·           "[EMAIL PROTECTED],c" is satisfied if the "string" is to the left of row r, column c

 

I based my PauseLoop logic on the original statement.  It is obviously incorrect for PauseLoop.  Perhaps the “is to the left of” should be stated explicitly in the PauseLoop help, Now the question remains, is the original statement “begins at” correct for At(), meaning that it is different between the two commands.

 

I think I will implement Scott Nathanson’s function to implement this (Thanks Scott. Go out and buy yourself a MonsterBurger, and send me the bill!!  ;-)  ) Scott, this belongs in the library if it isn’t there already. Please submit it if you haven’t yet.

 

Thank you to all who replied, and were patient during my education.

Yours in confusion,

Lew Hundley
Information Specialist - Programmer
Silverton Hospital
Silverton
Oregon
503.873.1657
[EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Corinna Robertson
Sent: Wednesday, August 20, 2003 5:08 PM
To: [EMAIL PROTECTED]
Subject: RE: [Talk] FW: PauseLoop issue RESOLVED

 

The example you show is looking for data to the left of the cursor so it is only true when the cursor is in the position that has name directly to it’s left, if the screen looked like this

Name Joe Somebody Address 123 anywhere

And the cursor was sitting at the end of the address the name check would also be true it would just matter as to which one the loop hit first which would throw everything off.

The example I used and a few of the others which were similar in concept work because ( I am going to use my example because I can see where the cursor will be

I would say

 If At(“ Name”) Then  ‘could be true even if I am at address

            If Col < 19 Then  ‘this could only be true if I am at name

                        Do something

            Else

                        At “” ‘here I must have been at address and I need to still be able to find name so I clear the at

            End if

End if

 

Let me know if this does not clear things up for you.

 

Thanks,

Corinna

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lew Hundley
Sent: Wednesday, August 20, 2003 6:29 PM
To: [EMAIL PROTECTED]
Subject: RE: [Talk] FW: PauseLoop issue RESOLVED

 

OK Corinna, you all have me completely confused now. I’m not trusting my own instincts, and the information I am getting is just muckin’ up my mind.

 

You say that the PauseLoop that I am using is true the entire time I am on the screen. I interpret this to mean that it doesn’t look to the left or right of the cursor, it looks at the entire screen??  If so, why doe the PauseLoop Command help text show this example?

 

Do        'fills out name and address prompts...

                        PauseLoop "Name:", Name & "~"

                        PauseLoop "Address:", Address & "~"

                        PauseLoop "Zip:", Zip & "~"

                        Wait .1

            Loop Until At("File?")      '...until complete

           

If my understanding is correct, the PauseLoop is looking for Discharge time at position 10, 37, as stated by the re-directed reference from PauseLoop to At()

 

·           "[EMAIL PROTECTED],c" is satisfied if the "string" begins at row r, column c,

 

What makes your suggested “If” statement any different, except it looks to the left with the “< 40” test.

 

It has been a long day of fighting this issue, and I really want to understand, but maybe I need a new start tomorrow.  Please be kind and explain it in no more than two syllable words.  J

TKs

Lew Hundley
Information Specialist - Programmer
Silverton Hospital
Silverton Oregon
503.873.1657
[EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Corinna
Sent: Wednesday, August 20, 2003 10:11 AM
To: [EMAIL PROTECTED]
Subject: RE: [Talk] FW: PauseLoop issue RESOLVED

 

I'm not so sure that is the right fix lou, it may be just a coincidence it works but I would not rely on it.

example:

PauseLoop "Discharge [EMAIL PROTECTED],37", "~"

 

this will be true the entire time you are on the screen, pauseloop won't find the same thing twice in a row so that helped it work but I don't think it is reliable

more reliable would be something like this:

If At("Discharge Time") Then

    if Col < 40 then

        do whatever

    else

        at ""

    endif

endif

 

Thanks,

Corinna Robertson

 

Boston Software Systems

[EMAIL PROTECTED]

www.bostonworkstation.com

The Essential Tool for Healthcare Integration

866-653-5105 ext. 8

508-653-5105

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lew Hundley
Sent: Wednesday, August 20, 2003 12:36 PM
To: [EMAIL PROTECTED]
Subject: [Talk] FW: PauseLoop issue RESOLVED

Geez, I don’t know why, but 90% of the time it seems that just after writing up an issue, I am able to come up with a fix.  

 

I just had not specified the other strings’ row/col. As soon as I did that, all worked fine.

 

I hope some good comes of this. Maybe someone, when working on a multiple column runs into a problem, this will come to mind. The new Do Loop follows:

 

 

     Do

            'Stable 1

            Wait 0.4

            PauseLoop "Discharge [EMAIL PROTECTED],37", "~"

            'Stable 1

            Wait 0.4

            PauseLoop "Discharge [EMAIL PROTECTED],37", "~"

            'Stable 1

            Wait 0.4

            PauseLoop "Alt Desc [EMAIL PROTECTED],1", "~"

            Wait 0.4

            PauseLoop "Arrival [EMAIL PROTECTED],1", "~"

            Wait 0.4

            PauseLoop "Admit [EMAIL PROTECTED],1", "~"

            Wait 0.4

            'Stable 1

            PauseLoop "Admit [EMAIL PROTECTED],1", "~"

            Wait 0.04

            'Stable 1

            PauseLoop "Admit [EMAIL PROTECTED],1", "~"

            DoEvents

            Wait 0.2

        Loop Until At("Discharge [EMAIL PROTECTED],37") 'And (At("@9,55") Or At("@9,58"))

 

TKs

Lew Hundley
Information Specialist - Programmer
Silverton Hospital
Silverton Oregon
503.873.1657
[EMAIL PROTECTED]

-----Original Message-----
From: Lew Hundley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 9:28 AM
To: BostonWorkStation Talk ([EMAIL PROTECTED])
Subject: PauseLoop issue

 

Well, I call it the pauseloop issue, but I am not sure.

See the attached doc.

 

My issue is that I have a two column screen, and I have had various issues while trying to run this.

 

The original issue was that I couldn’t get the cursor to stop on Discharge Disp. I figured that out. It was because strings in the second column were being statisfied by strings in the first column (I would want to PauseLoop on Discharge Date, but in my Do Loop Admit Date was also being satisfied, so an enter would be keyed, and I would end up 2 or 3 fields beyond Discharge Disp).

 

I have ended up trying to be specific about Discharge Date, by adding cursor positions, but that is not working right now.

 

Any suggestions?

 

TKs

Lew Hundley
Information Specialist - Programmer
Silverton Hospital
Silverton Oregon
503.873.1657
[EMAIL PROTECTED]

 

Reply via email to