12-27-2005 02:54 AM
12-27-2005 03:02 AM - edited 12-27-2005 03:02 AM

Message Edité par chilly charly le 12-27-2005 10:02 AM
12-27-2005 03:35 AM
12-27-2005 03:44 AM
Sreedar,
You have represented type as I32, change it to U8
Regards
Dev
12-27-2005 03:44 AM
12-27-2005 03:55 AM
01-02-2006 03:22 AM

01-02-2006 03:55 AM
Hi,
There is no 'Major Advantage' as such, of using 'type cast' over 'string to byte array' function.
The requirement in this case was to display a single string's ascii equivalent, hence typecast( which only converts first element in the string) was used.
If finding the 'Ascii equivalent' of a each element in a set of string characters was the requirement, then 'string to byte array' function would be a better choice.
regards
Dev
01-02-2006 04:03 AM
Hi guys
I'd use the "string to byte array" function, because I think it is not such a good coding, if you cast a string to a single U8. If you could enter a single character - ok, but as this is not provided, I'd suggest to use the mentioned function.
Thomas
01-02-2006 06:18 AM
I'm curious. Is there a technical reason behind, or is this just a personal opinion ?..
becktho a écrit: ...it is not such a good coding, if you cast a string to a single U8. If you could enter a single character - ok, but as this is not provided...