Tom,
Do:
set var vPrinters = (cval('Printers'))
write .vPrinters
from the comma separated list, make certain that your value in the table is
exactly the way it appears in the separated list.
For example, on my local machine the list looks like this:
Microsoft XPS Document Writer,HP LJ300 color MFP PCL 6 Fax,HP LJ300 color
MFP PCL 6,HP LaserJet 8100 Series PCL6,HP LaserJet 400 M401 PCL 6,Fax,Adobe
PDF
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of TOM
> HART
> Sent: Monday, February 09, 2015 7:55 PM
> To: RBASE-L Mailing List
> Subject: [RBASE-L] - Prnsetup
>
> I have the following code to set up a receipt printer for a receipt.
> For some reason this will not set it to the default printer(vprinter1).
> Comprecprinter has a valid printer captured.
>
>
> SET VAR vcompname = (CVAL('computer'))
> SELECT comprecprinter INTO vprinter1 INDICATOR iv2 FROM storecomputer +
> WHERE compname = .vcompname PRNSETUP .vprinter1 PRINT consignbuyreceipt
> WHERE COUNT = 1
>
> Tom Hart
--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]
(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body,
place any
text to search for.
================================================