Hi to all:
I have to split a comma separated string into respective strings, but with the results in literal strings.
I made the logic with a FOR DO cycle, reading the string char by char, then using DTOS instruction to save every char (STRING Type) and then concatenating that char when is not a comma. With this algorithm I can split the string, the problem is that the results are in numerical ASCII, not literal.
Base string to split is a STRING Type (Len and Data)
Result String is an STRING array, with every splitted string stored in each element
For example if my string is AB,CD,FG I need to obtain a String array like this:
String_Array[0]='AB'
String_Array[1]='CD'
String_Array[2]='FG'
Now, I am obtaining this
String_Array[0]='6566'
String_Array[1]='6768'
String_Array[2]='6970'
Anything that I'm doing wrong or missing?
Any help is welcome.
Thanks and nice day for all!
I have to split a comma separated string into respective strings, but with the results in literal strings.
I made the logic with a FOR DO cycle, reading the string char by char, then using DTOS instruction to save every char (STRING Type) and then concatenating that char when is not a comma. With this algorithm I can split the string, the problem is that the results are in numerical ASCII, not literal.
Base string to split is a STRING Type (Len and Data)
Result String is an STRING array, with every splitted string stored in each element
For example if my string is AB,CD,FG I need to obtain a String array like this:
String_Array[0]='AB'
String_Array[1]='CD'
String_Array[2]='FG'
Now, I am obtaining this
String_Array[0]='6566'
String_Array[1]='6768'
String_Array[2]='6970'
Anything that I'm doing wrong or missing?
Any help is welcome.
Thanks and nice day for all!