Mobile Printer CPCLProgramming Manual P13-5
Example 2:
This example is not a complete menu setup, it is a
sample card. It is meant as a tool to break down the
tags and explain their use.
Comments
<!— *************************************** —>
<!— ******** Setup Comm Baud Card ********* —>
<!— *************************************** —>
Begin card, the card name is baud, the title is “Com,Baud”, when
the 20 second timer expires go to the card called status.
<card id=”baud” title=”Com,Baud”
ontimer=”#status”> <timer value=”200"></timer>
Display the current baud rate after four spaces.
<p> $(vnd.zo.comm.baud)</p>
Do a line break
</br>
Display 9600 and put three spaces after it, if 9600 is selected then
execute the setvar command to change the baud rate to 9600 in
the <do> ... </do> and refresh the display.
<do type=”accept” label=”9600">
<setvar name=”vnd.zo.comm.baud” value=”9600"/
><refresh/>
</do><p> </p>
Display 19200, if 19200 is selected then execute the setvar
command to change the baud rate to 19200 in the <do> ... </
do> and refresh the display.
<do type=”accept” label=”19200">
<setvar name=”vnd.zo.comm.baud” value=”19200"/
><refresh/>
</do>
Do a line break
</br>
Link the card back to the previous menu.
<p><a href=”#comm”>Back</a> </p>
Link the card back to the main menu.
<p><a href=”#main”>Main</a></p>
End the card
</card>
continued on next page