PFPOSTPRINT question

Don Coleman dcoleman at dgcreact.com
Thu Jun 24 07:34:33 PDT 2004


Kenneth Brody wrote:

> Don Coleman wrote:
> >
> > By using the getenv command and displaying its results I have narrowed
> > my problem to one area
> > on line #26.  When I display the results of getenv ("PFPOSTPRINT") my
> > variable HY which contains
> > a letter for a printer I am attempting to append, it appears as the
> > dummy variable HY instead of the value of HY.  I have tried adding one
> > pair of additional quotes in several places but each attempt fails
> > the syntax check.
>
> Huh?
>
> What is the value of HY, and what exactly is not showing up correctly?
>

The value of HY="R" (the letter R w/o quotes).  The msgbox is showing me printing
to a printer
named I-4308{HY instead of I-4308R.


>
> >  Can anyone shed light on where to add quotes (or some
> > other method) so that the printer name will appear as:
> >
> > C:\PRINTWIZ\PRINTWIZ.EXE /PI-4308R (where "R" is the value of dummy
> > variable HY)
> [...]
> >          If: HY ne ""
> >        Then: putenv "PFPOSTPRINT","C:\\PRINTWIZ\\PRINTWIZ.EXE
> > /P\I-4308"{HY C:\\PRINTWIZ\\HARDCOPY.TXT";'goto pickprt
>
> This is not a valid statement, and should be generating a syntax error,
> as you do not have balanced quotes.
>

This both passes syntax check (fPv5.0.06 native development) and does not issue an
error at
run-time fPv5.0.13 native QS rclerk (other than my windows printer error).

>
> >          If: HY ne ""
> >        Then: HP(70,*)=getenv("PFPOSTPRINT");msgbox "\r HP="{HP
>
> What is the value of HY, and what shows up in the messagebox?
>

The value of HY=R (see above).  The msgbox shows:

C:\PRINTWIZ\PRINTWIZ.EXE /P-4308{HY C:\PRINTWIZ\HARDCOPY.TXT
I just noticed that after the "/P" I am also missing the "I".  The correct windows
printer name is
I-4308R.


Donald G. Coleman, Consultant
2100 Birchwood Dr.
Indiana, PA 15701
dcoleman at dgcreact.com
(724) 349-6302


>
> --
> +-------------------------+--------------------+-----------------------------+
> | Kenneth J. Brody        | www.hvcomputer.com |                             |
> | kenbrody at spamcop.net | www.fptech.com     | #include <std_disclaimer.h> |
> +-------------------------+--------------------+-----------------------------+
>
> ---
> [This E-mail scanned for viruses by Declude Virus]




---
[This E-mail scanned for viruses by Declude Virus]



More information about the Filepro-list mailing list