[Gambas-user] Type mismatch.
Leo Barnhoorn
leo.barnhoorn at ...246...
Tue Jul 20 01:13:22 CEST 2004
Hello Benoit,
I have a Type mismatch: wanted Byte, got String instead.
CByte
Byte = CByte ( Expression )
Converts an expression into a byte. Expression is first converted into an
integer. Then, if this integer overflows the byte range, it is truncated.
Example PRINT CByte("17") = 17
So if i'am not wrong this has to work also, following the explanation above:
CByte("&H" & Mid(sHex, i * 2 + 1, 2))
But this sets the error : Type mismatch: wanted Byte, got String instead
For CInt / CInteger the same.
Thanks for really nice Gamber version 0.95.
Regards,
Leo.
More information about the User
mailing list