Demo #2: COUNTER.REX

These examples of COUNTER.REX will record hits in CNTDEMO2.CNT (in the /SRE2K/SREHTTP2/DEMOS directory).

Text mode:
<!-- INTERPRET FILE COUNTER.rex FILE=cntdemo2 ith=1 -->
1,062nd
GIF-digits:
<!-- INTERPRET FILE COUNTER.rex FILE=cntdemo2 inc=0
IMGTYPE=goldodo digits_frame=1 -->

Note the use of inc=0 to prevent augmenting the count.
|1062|
X-bitmap :
<img src="/COUNTER.rex?FILE_WWW=/sre2k/srehttp2/demos/cntdemo2&
graphic=normal&inc=0">
Set value of 1029
<!-- INTERPRET FILE COUNTER.rex val=1029 force_break=0 IMGTYPE=gara -->
1029
The word HELP
<!-- INTERPRET FILE COUNTER.rex value=help IMGTYPE=goldblok -->
help

Demo the SREH2_DIGITS and SREH2_XBITMAP procedures using TSTDIGIT.CMD: