try this (worked for me):
SET VAR vvardataname TEXT = '''MyVar'''
SET VAR vi INTEGER = 0
WHILE vi < 5 THEN
SET VAR vvardatanamechk = (chkvar(.vvardataname))
SET VAR vi = (.vi + 1)
ENDWHILE
RETURN
----- Original Message -----
From: "Dennis McGrath" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Friday, November 30, 2012 5:14 PM
Subject: [RBASE-L] - Re: While loop problem
Nope, I tried whileopt off
Dennis McGrath
[email protected]
[email protected]
On Fri, Nov 30, 2012 at 11:27 AM, Albert Berry
<[email protected]>wrote:
Dennis, this is probably already true, but anyway SET WHILEOPT OFF and
try
again.
Albert
On 30/11/2012 9:14 AM, Dennis McGrath wrote:
SET VAR vVarDataCmd = +
('set var vVarDataNameChk = (CHKVAR(''' + .vVarDataName + '''))')
&vVarDataCmd
CHKVAR will only take a quoted string, not a dotted variable, so I had
to
write the code this way.
I cannot put this in a while loop
it does not like the &vVarDataCmd
it says Unrecognized command in entry/exit procedure.
the same code works in a goto loop, but that is too slow.
Any blues clues?
Dennis McGrath
Software Developer
QMI Security Solutions
1661 Glenlake Ave
Itasca IL 60143
630-980-8461
[email protected]
No virus found in this message.
Checked by AVG - www.avg.com <http://www.avg.com>
Version: 2013.0.2793 / Virus Database: 2629/5920 - Release Date:
11/26/12