Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
What is wrong with the following script. (no syntax error, but garbage error):
Let vDiagnosisCrit = NoOfRows('DiagnosisCrit');
Let vConditions = '';
for i=0 to $(vDiagnosisCrit)
let vConditions = '$(vConditions), ' & peek('DiagnosisCrit_Condition',$(i),'DiagnosisCrit');
next
No clue on a first glance.
What I suggest is that you add a bunch of TRACE statements to that loop to figure out what the individual variables are on any given moment.
TRACE Loop number $(i);
TRAVE vDiagnosisCrit = $(vDiagnosisCrit )
etc...
What you are trying to achieve?
Maybe it's your start with a comma. Instead of:
let vConditions = '$(vConditions), ' & peek('DiagnosisCrit_Condition',$(i),'DiagnosisCrit');
try
let vConditions = '$(vConditions)' & peek('DiagnosisCrit_Condition',$(i),'DiagnosisCrit') & ', ';
- Marcus