Hi Again Charles,

It pays to read twice, code once.  I forgot to put the last '\' in the final
command.  It should be:

SET VAR vNewDir = ('g:\' + .vNewDir + '\' + (CTXT(.vCount)))

Dave Billing
Tall Tree Business Solutions
----- Original Message -----
From: "David Billing" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 24, 2003 4:27 PM
Subject: Re: [RBASE-L] - What it the correct syntaxx


> Hi Charles,
>
> I think you're going to have to parse the string produced by
(ctxt(.#date))
> to strip out the "/" which won't work in a file name.  So you want
something
> like:
>
> SET VAR vNewDir TEXT = (CTXT(.#DATE))
> SET VAR vNewDir = (SGET(vNewDir,2,1)) + (SGET(vNewDir,2,4)) +
> (SGET(vNewDir,4,7))
> SET VAR vNewDir = ('g:\' + .vNewDir + (CTXT(.vCount)))
>
> You may want to pad .vCount with leading zeros or reverse the SGET order
to
> put the year first, month second, etc.
>
> Dave Billing
> Tall Tree Business Solutions
>
> ----- Original Message -----
> From: "Charles Parks" <[EMAIL PROTECTED]>
> To: "RBASE-L Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, January 24, 2003 3:56 PM
> Subject: [RBASE-L] - What it the correct syntaxx
>
>
> >
> > What would be the correct way to write this statement:
> > SET VAR vNewDirectory TEXT = ('g:\' + (ctxt(.#date)) + '\' +
> > (ctxt(.vCount)))?
> >
> > I have verified that .vCount does have a value but Rbase says this
command
> > cannot be evaluated.
> >
>

Reply via email to