The Unicode string is 2 bytes longer, perhaps this is the reason for the compare failure?
Debug output shows them identical!
Thanks,
Richard
Code:
Code: Select all
x$ = StringField(ReadString(0,#PB_Unicode), #fid, fd$)
y$ = "#Device ID"
Debug x$
Debug StringByteLength(x$)
Debug y$
Debug StringByteLength(y$)
Trim(x$)
Debug x$
Debug StringByteLength(x$)
__________________________________________________#Device ID
22
#Device ID
20
#Device ID
22
Code and quote tags added
05.06.2018
RSBasic