15.11.2016, 16:26
(15.11.2016, 16:13)gjniewenhuijse Wrote: yes i have data, for example:
[fixTime]
* string: 2016-11-15T16:04:04.000+0000
But i think the problem is the general loaded string.split function:
Code:-- split a string into a table
function string:split( inSplitPattern, outResults )
if not outResults then
outResults = { }
end
local theStart = 1
local theSplitStart, theSplitEnd = string.find( self, inSplitPattern, theStart )
while theSplitStart do
table.insert( outResults, string.sub( self, theStart, theSplitStart-1 ) )
theStart = theSplitEnd + 1
theSplitStart, theSplitEnd = string.find( self, inSplitPattern, theStart )
end
table.insert( outResults, string.sub( self, theStart ) )
return outResults
end
What are the symptoms of problem? This function should work especially stringplit(it produce the table of a few data which before was in one string separated via separator).