Try the & symbol instead of the .

Dan Goldberg

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Chris
Szeto
Sent: Friday, February 06, 2004 4:34 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Print command using a dynamic filename.


Has anyone been successful in creating a print command that incorporates a
variable in place of a hard coded filename?

I have tried using one but I keep getting an error.  Something to do with
the single quotes.

EXAMPLE

SET DATE FORMAT YYYYMMDD
SET VAR vJB = 'C:\JB'+CTXT(.#DATE)+'.txt'
SET DATE FORMAT MM/DD/YY
PRINT <report> WHERE <criteria> OPTION TXT|FILENAME .vJB
return

Unfortunately it does not like the single quotes (at least that's my
assumption correct me if I'm wrong).

Is there anyway around this?
Thanks.

Reply via email to