It worked for me from the R> prompt it gave an error message inside of the macro.
 
Here is the code from the macro:
SET VAR vCount = 1
MD &vNewDirectory
set var vMktError = .verr
WHILE vMktError <> 0 THEN
SET VAR vCount = (.vCount + (.vCount * 3))
SET VAR vNewDirectory TEXT = ('g:\' + (ctxt(.#date)) + '\' + (ctxt(.vCount)))
MD &vNewDirectory
set var vMktError = .verr
ENDWHILE
-----Original Message-----
From: Louis L. Hirsh [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 24, 2003 3:25 PM
To: [EMAIL PROTECTED]
Subject: [RBASE-L] - Re: What it the correct syntaxx

That's odd.  I just typed:
R>set var vcount int = 12
Then I cut and pasted your statement exactly as you had it:
R>SET VAR vNewDirectory TEXT = ('g:\' + (ctxt(.#date)) + '\' + (ctxt(.vCount)))

Then I typed:
R>show var
This command yielded:
vNewDirectory      = g:\01/24/03\12                           TEXT

In other words, it worked fine.
(Rbase 2000 v6.5++  for Windows, building 1.682xRT03)

-- Lou Hirsh

Charles Parks wrote:

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