Homepage › Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › add unique number to field › Reply To: add unique number to field
June 6, 2005 at 6:59 pm
#56750
David Caragay
Participant
Here is a sample code fragment you can revise for an xlt proc. Similar code can by used in an IB tcl proc.
set counter_file
set count [CtrCurrentValue counter_file]
if {$count == 1} {
CtrInitCounter $counter_file file 2 99999
}
set count [CtrNextValue $counter_file]
set xlateOutVals $control_id