Thanks, Alastair and Albert.

No, the brackets are in there. The failed &vCmd formed from the second
version looks like this:

PROPERTY EventsListView 'ITEMS[20]->CHECKED' FALSE

Albert, I have tried it with quotes around the TRUE or FALSE, and without.
Both ways work in the first block. Both ways fail in the second block.

I have tried it with WHILEOPT OFF. Both ways work in the first block. Both
ways fail in the second block.

The column ExportFileName is generated as a NOTE datatype in the view, and
is selected into a TEXT datatype in the SELECT INTO. That command does not
exist in the first block. But the variable vExportFile does contain the
value it is supposed to (as TEXT). The SET VAR command executes correctly,
and the value of &vCMD looks correct.

Bill



On Thu, Mar 26, 2015 at 3:43 AM, Alastair Burr <[email protected]> wrote:

>   *(CTXT(.vNext)) – missing brackets?*
>
> *Regards,*
> *Alastair.*
>
>  *From:* Bill Downall <[email protected]>
> *Sent:* Wednesday, March 25, 2015 8:54 PM
> *To:* RBASE-L Mailing List <[email protected]>
> *Subject:* [RBASE-L] - ListView Checkboxes: I cannot see it. Can you?
>
>  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
>

Reply via email to