Finding items in Unicode data
Posted: Wed Apr 09, 2008 9:26 am
Hi,
For some reason I have to delete the first char at the beginning of my last item in order for the following to work:
if the hilitedLine is not empty then
put the hilitedLine of me into tHiLiteNum
put last item of line tHiLiteNum of me into tuDestCardIDNumber
delete char 1 in tuDestCardIDNumber
put uniDecode(tDestCardIDNumber) into taDestCardIDNumber
go to card id taDestCardIDNumber
end if
where tu = temp unicode variable, and ta = temp ansi variable
Can anyone explain why I have to delete the char 1? When I generate the field data, I put:
dataA(which is already in UTF16) & UniEncode(comma & space) & dataB
It seems odd to me that I just delete one character rather than 2 and it seems even more odd that a char would need to be deleted at all.
LarryH
For some reason I have to delete the first char at the beginning of my last item in order for the following to work:
if the hilitedLine is not empty then
put the hilitedLine of me into tHiLiteNum
put last item of line tHiLiteNum of me into tuDestCardIDNumber
delete char 1 in tuDestCardIDNumber
put uniDecode(tDestCardIDNumber) into taDestCardIDNumber
go to card id taDestCardIDNumber
end if
where tu = temp unicode variable, and ta = temp ansi variable
Can anyone explain why I have to delete the char 1? When I generate the field data, I put:
dataA(which is already in UTF16) & UniEncode(comma & space) & dataB
It seems odd to me that I just delete one character rather than 2 and it seems even more odd that a char would need to be deleted at all.
LarryH