Thanks for the explanation Peter. I think I have it now.
JK

-----Original Message-----
From: Turner, Peter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 04, 2005 3:39 PM
To: [email protected]
Subject: RE: [Talk] Question About Printer script


OK I have looked over my side - what part are you having trouble with?  

My code was written with Visual basic in mind, not VB script.  For VB
script you will probably have to remove the AS modifiers from DIM
statements and the variable type declarations in the function statement.
Whether everything else will operate properly with VB script, I am not
sure - I think so, but I haven't tested so your mileage may vary.

Feel free to ask other questions.

Visual basic
        Function SendToPrinter(NewPrinterName As String, Optional Copies
As Long) 

VBScript 
        Function SendToPrinter(NewPrinterName, Copies) 

With VB script you will always have to call the function as
SendToPrinter("PrinterName",1)


Pete


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John R. Kull
Sent: Tuesday, January 04, 2005 11:07 AM
To: [email protected]
Subject: [Talk] Question About Printer script


Hi Folks,

Just learning Boston Workstation and am new to VB Scripting. Could
someone explain how to plug in the necessary "values" to make Peter
Turners script on the Printer Selection Routine work in my environment. 

Thanks,


John Kull, A+, N+, MCSE
Senior Network Administrator
Anderson Hospital
618-288-5711 X 620




Confidentiality Notice: This email is intended only for the person(s)
identified above. It contains information which may be privileged,
confidential and/or exempt from disclosure under law. If you are not the
intended recipient of the email, you are hereby notified that you should
not review the contents of the email, and that any review,
dissemination, distribution or copying of this communication is strictly
prohibited. If you received this in error, please notify me immediately
at the listed phone number or email me at [EMAIL PROTECTED]
Also, please destroy it in such a way that it cannot be accidentally
redisclosed.  Thank you


Reply via email to