- Code: Select all Expand view RUN
@ 1,1 xbutton
generates a "syntax error" message when used with the following preprocessor #xcommand:
- Code: Select all Expand view RUN
#xcommand @ <nRow>, <nCol> XBUTTON [ <oBtn> PROMPT ] <cPrompt> ;
=> ;
[ <oBtn> := ] TxButton():New(<cPrompt>)
However, this preprocessor #xcommand works without error:
- Code: Select all Expand view RUN
#xcommand @ <nRow>, <nCol> XBUTTON [ <oBtn> ] ;
=> ;
[ <oBtn> := ] TxButton():New()
This code works without error with both #xcommands above:
- Code: Select all Expand view RUN
@ 1,1, xbutton oBtn
So it seems that oBtn is not optional in the first #xcommand. Is there a way to change the first #xcommand so that oBtn is optional?
Regards,
James