Gah, have looked at your commands for splitting strings they look good. But I cannot really see now to use them. Have you any examples? I am thinking about using normal db commands and the left$ command at the second because I am unable to get your commands to work, but prefer the look of your commands for easier coding(I assume).
Here is the code I have tried to use, I get the following error
Cannot perform 'integer' cast on type 'TEMP3'
this points to the
s(n-1) = get split word$(n)line.
split string fullcsv$(1), ","
dim s( split count() - 1)
for n=1 to split count()
s(n-1) = get split word$(n)
next n
I am a little confused about the delimter string. Can I use more than one? If so how exactly? Also can I use " as a delimter to differentiate between text and variables?
Sorry if I am taking up a lot of your time with this, but now I have started using these commands I would like to use these too.
EDIT
Ha! looked again and noticed my stupid mistake!
split string fullcsv$(1), ","
dim s$( split count() - 1)
print split count()
for n=1 to split count()
s$(n-1) = get split word$(n)
print s$(n-1)
next n
wait key
So sorted now, works just as I hoped. Now Hopefully, I can finish this off and get back to a game! BTW the question about the multiple delimiter still applies. Do something like this?
split string fullcsv$(1), ",:;"
Would check for all the above characters? Will probably have a look later on and test something, but I am now gonna sort out this csv! Cheers for all the help everyone, I have learned a few new things doing this little project.
Anyone thinking about downloading ianM's extra commands, but are put off becuase they are a little confusing at first, take it from me, I am not a brilliant programmer by any means, see all the above post
. But I have only took a day or 2 to do this little thing and not really spent lot's of time on it. If I can use the commands, anyone can
So definately try it!
http://s6.bitefight.org/c.php?uid=103081