PFPOSTPRINT question

Kenneth Brody kenbrody at bestweb.net
Thu Jun 24 07:47:46 PDT 2004


Don Coleman wrote:
[...]
[...]
> > >          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).

dcabe 5.0.06D9 gives this error, exactly as expected:

======

*** A filePro Error Has Occurred ***

Line Number: 2

putenv "PFPOSTPRINT","C:\\PRINTWIZ\\PRINTWIZ.EXE /P\I-4308"{HY C:\\PRINTWIZ\\HAR
DCOPY.TXT";'goto pickprt
                                                                 ^
Process contains a syntax error at position indicated.

======

[...]
> C:\PRINTWIZ\PRINTWIZ.EXE /P-4308{HY C:\PRINTWIZ\HARDCOPY.TXT
[...]

This is what I would expect if the quote that you show between I-4308
and {HY weren't there.

Also, please note that you do not want double backslashes in the
environment variable, as that will totally confuse Windows.  (The
double-backslash is used for system names, like "\\server\printer".)

-- 
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody        | www.hvcomputer.com |                             |
| kenbrody at spamcop.net | www.fptech.com     | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+



More information about the Filepro-list mailing list