#include once "ext/ext.bi"
dim as string a = "a:b:c"
dim as string b()
dim as integer i, result
result = ext.strings.split(a,b(),":",0)
?result
for i = 0 to result -1
?b(i)
next
sleep
#include once "ext/ext.bi"
Dim As String a = "a:b:c"
Dim As String b()
Dim As Integer i, result
result = ext.strings.split(a,b(),":",0)
? result
for n as integer = lbound(b) to ubound(b)
? b(n)
next
*EDIT*
Fixed the bug in SVN, the function was incorrectly setting the return parameter to true, not the count.
Merick: that's because the build.bat file is outdated, it honestly is very hard to maintain and make is the preferred way to build. It is very easy to build with MSYS, all you have to do is add your FreeBASIC directory to MSYS' path variable and it should build no problem.
Immortis: I haven't noticed that before, i'll take a look when i get home from work and see what i can find out about that.
ok, goto Control Panel/System and click the Advanced tab. Now click the Enviroment Variables button at the bottom. Now, in the bottom scroll window, find the Path entry. Highlight it and click the Edit button. You should see something like this:
OK that did it, but I already knew how to add paths in windows, from what sir_mud said I had been thinking that I had to change something in msys itself
Good job on this library, keep it up.
Also, I'd like to make a feature request for a load_mem function with jpg images.
Just like the png function =)
If you don't have the time please let me know and I'll give it a try.
Yes, I realize that. However the jpg image I want to load is not a file, it is embedded inside a ID3v2 tag for Mp3's.
So after I've loaded the entire ID3v2 tag into memory and parsed it, I'm left with an image in memory. Rather than save it to file and then load it. (which I've done in the past) It should be quite easy to add the function that I mentioned above =). Sorry for any confusion.
I actually don't know much about jpeg formats. I'm pretty sure these are just standard, nothing unusual about them anyway. Just add a function that would be compatible with the load_jpg from file that you have now, I wouldn't expect you to code a whole new format for me, hehe. =)
I can provide an example of a jpeg I'm talking about if you want.