parse a line into fields
kray at sonsothunder.com
Fri Aug 26 09:04:02 CDT 2005
On 8/26/05 8:31 AM, "rev at armbase.com" <rev at armbase.com> wrote:
> Hi All.
> I've read a binary file containing entries in a database and put each record
> a line in a field.
> I dont know how to write in a wee square so imagine the 9 is a square.
> The fields has records in it like this
> Now the number of squares can be variable (normally from 2->4) and the line
> have blank spaces in it (not in amongst the squares)
You can use a variation of the code I mentioned a few days ago... at that
time, I was trying to convert space runs of 1 or more spaces to only be 1
space. You can use the same approach for converting your box characters to
some other delimiter (like a tab) for easy processing.
Something likes this (assuming your boxes are something like numToChar(1)):
put replaceText(tData,numToChar(1) & "+",tab) into tData
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode