Hi.. not really sure where to post this as I looked over the categories and nothing seemed to fit. its not a tutorial and its not part of any lesson.. just more of a quesiton:
1st im pretty fluent in 5 major languages (yes I sometimes get them mixed up) but I am very very nestaligic when it comes to program. I just like the DOS feel of stuff (as I was an avid BBS'er and ran my own and even wrote a few doors).
I was estactic when i found that there was a basic program that actually worked in modern day windows. I was working with VBDos v1.0 until XP then it quit working. (No i cant stand dosbox as I want my apps to run on any system)
ok enough of that
What I am trying to do, and may be beyond the scope of QB64 but here goes.
My favorite language is PHP, one because of all the goodies they have. Two functions they have that I would like to create for QB64
SERIALIZE/UNSERIALIZE and SPLIT (or explode same thing)
However, I can do the serialize if i can just get the split to work.
Split takes a delimited string (usually comma) and returns it as an array
example text$ = SPLIT("THIS,IS,A,TEST", ",")
would give the following:
text$(1) = "THIS"
text$(2)="IS"
and so forth
my problem is I do not remember how old basic returns an array from a function (if it is even possible)
currently I have it set as
FUNCTION SPLIT(TEXT$, DELIM$)
where TEXT$ is the delimited string and DELIM$ is what is used to split it (see above)
how do you have a function return an array value?
sorry tab,enter by accident sending this post.. stand by for the rest