Thanks Thom.  I'll see if I can get that to work.

One more quick question....If I am using the New NUI connection
(stMeditechNUIex) and I connect to an stWindows how do I reconnect, or
activate the NUI connection?  Connect "MeditechNUI" does not connect, but
gives a "Cannot start Meditech" error.  I assume because the command is
looking to open a new MeditechNUI connection 

Thanks.
Brian Bennett
Affinity Health Systems
PBS\Clinic Billing
(920)628-9055
[EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thom C. Blackwell
Sent: Wednesday, January 09, 2008 9:29 AM
To: [email protected]
Subject: RE: [Talk] For|Next rule

Greetings,
Sounds to me what you want need to do is retain the value stored in T?
Meaning you want to basically enter in, in the same place:
T-1
T-2
T-3
Respectively?
And check after each to see if an Error occurred?

Attached is a sample project showing how I'd attack this. Of course this
will require being grafted into your script = but hopefully it illustrates
the point.

Regards,
Thom


Thom C. Blackwell
Product Manager
Boston Software Systems
(866) 653-5105 ex 807
www.bossoft.com
 
Sign up for my weekly webinar!

LEGAL NOTICE Unless expressly stated otherwise, this message is confidential
and may be privileged. It is intended for the addressee(s) only. Access to
this E-mail by anyone else is unauthorized. If you are not an addressee, any
disclosure or copying of the contents of this E-mail or any action taken (or
not taken) in reliance on it is unauthorized and may be unlawful. If you are
not an addressee, please inform the sender immediately, then delete this
message and empty from your trash.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bennett, Brian
Sent: Wednesday, January 09, 2008 9:46 AM
To: '[email protected]'
Subject: [Talk] For|Next rule

Can the following be done with a rule?

For i=1 to 3
T = "T-" & i
Next i

If I direct the rule in a step to a sub routine that does the for|next the
only answer I get is T-3, always skips over T-2 and T-1.  I have the
following: (the only way I could conceive a solution)

If Rule("Print [EMAIL PROTECTED],1&@3,16") Then
            For i = 1 To 3
            T = "T-" & i
            Stable 0.5
            Enter T
            Stable 0.5
            Enter T
            Stable 0.5
            If At("[EMAIL PROTECTED],1") Then
                        Step = "Stmnt Error"
                        EDI_Transmit
                       Else
                       Step = "Download Statements"
                       EDI_Transmit
            End If
            Next i
            Exit Sub
        End If

If I F8 step through it it works fine.  As soon as I go full speed it will
enter the first range correctly, the second time through it will enter T-2
and then t-3 instead of t-2 and t-2.

Any thoughts?  I'm not finding anything that looks familiar in Talk
archives.

Thanks.

Brian Bennett
AHS Clinic Billing
System Analyst
920-628-9015

Reply via email to