Bill, do you need to quote 'TRUE' ?
Albert
On 3/25/2015 2:54 PM, Bill Downall wrote:
I'm going blind trying to find my error. Can you spot it?
This works:
SET VAR vNext INTEGER = 0
WHILE vNext < .vCountAll THEN
SET VAR vCmd = +
* ('PROPERTY EventsListView' & +*
* '''ITEMS[' + CTXT(.vNext) + ']->CHECKED''' & +*
*IFEQ(.vCheckAll,'T','TRUE','FALSE') )*
&vCmd
SET VAR vNext = (.vNext + 1)
PROCESSMESSAGE
ENDWHILE
This fails every time at the %vCMD, with "Unrecognized command in
entry/exit procedure":
WHILE vNext < .vCountAll THEN
PROPERTY EventsListView MAKECLICK .vNext
SELECT ExportFileName INTO vExportFile vNI +
FROM tCompuSportExport +
WHERE TourneyID = .vTourneyID +
AND GameCode = .vSelectedItem
IF vExportFile CONTAINS 'single' THEN
SET VAR vCmd = +
* ('PROPERTY EventsListView' & +*
* '''ITEMS[' + CTXT(.vNext) + ']->CHECKED''' & +*
*IFEQ(.vCheckSingles,'T','TRUE','FALSE') )*
&vCmd
ENDIF
SET VAR vNext = (.vNext + 1)
PROCESSMESSAGE
ENDWHILE
They look virtually identical to me. And here's some of the
environment at the error: "F" or "T" makes no difference, it fails
either way.
R>sho v vcmd%
Variable = Value Type
------------------ ------------------------------ -------
vCmd = PROPERTY EventsListView TEXT
'ITEMS[14]->CHECKED' TRUE
vCheckAll = F TEXT
vCheckSingles = T TEXT
--
A democracy ..." can only exist until the majority discovers it can vote itself
largess out of the public treasury."
Attributed to Alexander Fraser Tytler 1747-1813