I am building a project using fields to save and open user
inputted details e.g. name , address etc...
And i am using printomatic to print them.. no problems with
this I have done several projects like this.
However in this particular project I have a checklist (using
director checkbox buttons) that I also want to save and print in
the same way as my fields... Can this be done, if not what options
an I use ?
The approach I would use, would be to scan the checkbox
the hilite state of each checkbox member, inserting an X in
output for each checkbox set.
If you had a predefined form recorded in a field, placeholder
could be used to locate the X chars, Say you have 5 check
form could have place holders X1 to X5.
-- here's a psuedo code fragment
repeat with check = 1 to 5
if member("checkbox" & check).hilite then insertCheck
else insertCheck check, false
on insertCheck checkNum, state
checkPos = offset("x" & checkNum, field "form")
if checkPos then -- found placeholder
if state then member("form").char[checkpos..checkpos +1] =
else member("form").char[checkpos..checkpos +1] = "_ "
put "Missing placeholder for " & "x" & checkNum --
error to msg
This is untested code the offset arg order may be wrong, the
function may not work with field members.