V#addchksum,x - add modulus 10 check code, V#add,name,size,prompt, V#addchksum,x – GoDEX EZPL User Manual
Page 53
![background image](/manuals/736893/53/background.png)
48
V#ADD,name,size,prompt - Store variable with a name
Syntax
V#ADD,name,size,prompt
Parameters
name = descriptive name
size = number of character
prompt = prompt of variable
Description
The name of the variable can be defined by user.
Example
~MDELF,aaa
^Faaa
^Q50,0,3
^AD
^L
V#ADD,weight,10,Weight
V#ADD,date,15,Date
AE,7,46,1,1,0,0,Weight is ^(weight)
AE,7,86,1,1,0,0,Date is ^(date)
E
^Kaaa
16 kg
11/26/2004
E
~P1
Weight is 16 kg
Date is 11/26/2004
V#ADDCHKSUM,x - Add modulus 10 check code
Syntax
V#ADDCHKSUM,x
Parameters
x = variable
Description
Add the modulus 10 check code to x
Example
Add modulus 10 check code to V00
~MDELF,test
^Ftest
^Q60,0,0
^L
V00,16,Prompt
V#ADDCHKSUM,V00
AE,47,57,1,1,0,0,Date:^V00
E
^Ktest
111222333
E
~P1
Print result
Enter Variable value
111222333
Print result
1112223332