Solved! Or worked around. When I took out the WHILE/ENDWHILE and replaced it with LABEL/GOTO, it worked. It's not just a WHILEOPT issue, because I also had the problem with WHILEOPT set OFF.
Thanks for the eyeballs. I'll build a comparable example in an RBTI Sample database and submit it to the RDCC. Bill On Wed, Mar 25, 2015 at 4:54 PM, Bill Downall < [email protected]> 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 >

