Do yourself (actually, your brain) a favor and use SETOPTION('NoVarsInStrings','on'). This will eliminate th needs to use all those doubled and tripled up '$' signs.

Also, the IIF conmstruct should be
code:
iif(not $CheckBox2.Checked,'','¤')
; or
iif($CheckBox2.Checked,'¤','')

as .checked does not return "false" or "true" but -1/0.
_________________________
There are two types of vessels, submarines and targets.