PFPOSTPRINT question

Kenneth Brody kenbrody at bestweb.net
Fri Jun 25 09:46:46 PDT 2004


Don Coleman wrote:
[...]
> Since I was fumbling around attempting to come up with the correct combination of
> backslashes and quotes in my PFPOSTPRINT command I came up with the following by
> splitting the expression into two dummy variables as:
>  25 -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
>          If: HY ne ""
>        Then: HS="C:\PRINTWIZ\PRINTWIZ.EXE I-4308"{HY;HT="C:\PRINTWIZ\HARDCOPY.
>              TXT";putenv "PFPOSTPRINT",HS<HT;goto pickprt
> 
> Prints to the correct printer w/o any windows error messages.  Is there any reason this
> is not an acceptable solution?  I left HS and HT un-defined.  Hopefully that causes no
> ill.

It depends on what you mean by "an acceptable solution".  There's nothing
wrong with the above as far as filePro is concerned.  However, it's more
complicated than it needs to be.  (Unless you need to use HS and HT as
separate values as some other point.)

The above is equivalent to:

    If: HY ne ""
  Then: putenv "PFPOSTPRINT","C:\PRINTWIZ\PRINTWIZ.EXE I-4308"{HY<
        "C:\PRINTWIZ\HARDCOPY.TXT"; goto pickprt

Which, except for the removal of the doubled backslashes, and the fixing
of your syntax errors, is the same as your original version.

-- 
+-------------------------+--------------------+-----------------------------+
| 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