Brother International TD-4420TN FBPL Command Reference - Page 131
XOR, Description, Syntax, Example
![]() |
View all Brother International TD-4420TN manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 131 highlights
10.4 XOR$() Description Encode the original data to a new data by logic XOR. Syntax XOR$(data$,password$) Parameter data$ Password$ Description The original data needs to be encoded by Password$. This parameter will be used to create the new data. Example Sample code Result data$="1234" password$="ABCD" encoded$=XOR$(data$,password$) deconded$=XOR$(encoded$,password$) SIZE 4,0.5 GAP 0,0 CLS TEXT 10,10,"3",0,1,1, "Encoded "+encoded$ TEXT 10,60, "3",0,1,1, "Decoded "+deconded$ PRINT 1 data: data: 126
![](/manual_guide/products/brother-international-td4420tn-fbpl-command-reference-a4fb318/131.png)
126
10.4 XOR$()
Description
Encode the original data to a new data by logic XOR.
Syntax
XOR$(data$,password$)
Parameter
Description
data$
The original data needs to be encoded by
Password$.
Password$
This parameter will be used to create the new data.
Example
Sample code
data$="1234"
password$="ABCD"
encoded$=XOR$(data$,password$)
deconded$=XOR$(encoded$,password$)
SIZE 4,0.5
GAP 0,0
CLS
TEXT 10,10,"3",0,1,1, "Encoded data:
"+encoded$
TEXT 10,60, "3",0,1,1, "Decoded data:
"+deconded$
PRINT 1
Result