Hi folks,
I am looking to use a WORD data type to store a unicode character - I have chosen the WORD datatype as this is the underlying data type of the WSTRING.
Basically I would like to be able to say:
VARΒ Β wTemp:WORD;END_VARwTemp:="<";
and to have the hex value of < put into the variable.
I have found a way around this problem but it is very un-eloquent and goes like this:
This has the desired effect of placing the hex value of < into wTempWord, but the readability of the program is awful, is there a way I can write the unicode character straight into the WORD variable.
I'm thinking of C in doing this:
temp='A';
Any help appreciated.
/Pete
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi folks,
I am looking to use a WORD data type to store a unicode character - I have chosen the WORD datatype as this is the underlying data type of the WSTRING.
Basically I would like to be able to say:
and to have the hex value of < put into the variable.
I have found a way around this problem but it is very un-eloquent and goes like this:
This has the desired effect of placing the hex value of < into wTempWord, but the readability of the program is awful, is there a way I can write the unicode character straight into the WORD variable.
I'm thinking of C in doing this:
Any help appreciated.
/Pete
I don't know if a function for this already exists, but it is pretty easy to make:
Then call this from your application