i was trying to compile a simple program but encounter a compilation error
ASM error
unidentified operation (xor) for this type (extended)
at line 22
the problem code is
$ filename "Testc.exe"
use rtl64
use corewin
'=======================================================
FUNCTION BigXOR(BYVAL value1 AS STRING, BYVAL value2 AS STRING) AS STRING
LOCAL valueans AS STRING
LOCAL loopit , tempnum AS LONG
Local insXor as LONG
tempnum = LEN(value1) - LEN(value2)
IF tempnum < 0 THEN
valueans = LEFT(value2, ABS(tempnum))
value2 = MID(value2, ABS(tempnum) + 1)
ELSEIF tempnum > 0 THEN
valueans = LEFT(value1, ABS(tempnum))
value1 = MID(value1, tempnum + 1)
END IF
FOR loopit = 1 TO LEN(value1)
insXor = VAL("&H" + MID(value1, loopit, 1)) XOR VAL("&H" + MID(value2, loopit, 1))
valueans = valueans + HEX(insXor)
NEXT loopit
FUNCTION = RIGHT(valueans, 8)
END FUNCTION
this is the error line
insXor = VAL("&H" + MID(value1, loopit, 1)) XOR VAL("&H" + MID(value2, loopit, 1))
how to rectify this error?