Having problem getting quotation marks with SYSTEM
Richard D. Williams
richard at appgrp.net
Mon Jan 16 09:55:12 PST 2012
On 11/15/2011 9:59 AM, Boaz Bezborodko wrote:
> I use Bob's excellent PrintWizard program for many things including
> generating PDFs. Since I give people the choice of whether to print to
> a printer or a PDF I have a routine that enters a !PDF command in the
> first line of the file. Up until now I haven't had a problem in that I
> didn't use any filenames with spaces in them. I know that Printwizard
> can handle those files if I include them inside quotation marks. But
> I'm having trouble getting in the quotation marks and I'm not sure why.
>
> I input the line by first creating a file with the !PDF as the first
> line by executing a SYSTEM "ECHO..." command. To put in the quotation
> marks I'm doing
>
> SYSTEM "ECHO !PDF \"/f\\server\data\fpro\temp\ "{[filename]{"\">>
> "&[anotherfilename]
>
> But the line in [anotherfilename] looks like this (without the intended
> quotation marks):
>
> !PDF /f\\server\data\fpro\temp\[filename]
>
> What am I missing?
>
> Boaz
>
Wanted to post this snipet of codes. I think this resolves the issues of
filepro data to any sql table.
mkhtml::hz=TOHTML(jz):
::p(3,.0)="1":
apos:not(hz co "'"):p="1";goto slash:
::n(3,.0)=instr(hz,"'",p);z=mid(hz,"1",n-"1"){"'"{mid(hz,n+"1","10000");hz=
z;z="";p=n+"4":
::goto apos:
slash::n=instr(hz,chr("47"),p):
:n le "0":jz=hz;return:
::z=mid(hz,"1",n-"1")&chr("92")&mid(hz,n,"10000");hz=z;z="";p=n+"2":
::goto slash:
Richard D. Williams
More information about the Filepro-list
mailing list