Generating EAN13 check digit

Does anyone have any sample code for generating the check digit for the EAN13 barcode. I have been provided the 12 digits of the barcode and now just need the finishing touches. All Help greatfully accepted [:D]

Try this, l_intCheckSum := STRCHECKSUM(<12digitEANCode>, ‘131313131313’); Hope that helps, Jesús Soage

Thanks JS, PERFECT [:D][:D] It was the command that I was after and then I could look at the help file. Also noticed that the EAN13 is used as an example in there too [:I] Dean.