Null character in imported strings

CharlesR

Member
Licensed User
Longtime User
I have imported a series of strings from an Excel spreadsheet as text files and I can see spaces in the string. Where these are genuine spaces, for example between two names in one cell, I have no problem manipulating them, but there are also null characters where the data is shorter than the width of the Excel cell. I know that I can trim these out but what should I search the B4A string for if I want to process them for instance to determine the start of the next cell?

Many thanks

Charles
 

CharlesR

Member
Licensed User
Longtime User
Attached are the first 4 lines of the file which has 300+ entries
 

Attachments

  • demo.txt
    119 bytes · Views: 310
Upvote 0

CharlesR

Member
Licensed User
Longtime User
Thank you for your help. I can now see that is the case between the first and second fields, but is it also the case between the second and third fields?
 
Upvote 0

CharlesR

Member
Licensed User
Longtime User
Surely you can establish that for yourself :sign0137:
Suck it and see or use a Hex Editor to look at the file or write a loop that logs the Asc(char)values to the Log or show them in a Msgbox.

Thank you for that. I have already developed a work around, I was just curious to see if anyone else had a simple solution.

Charles
 
Upvote 0
Top