How can I slice an array so it's empty?
BlitzMax Forums/BlitzMax Beginners Area/How can I slice an array so it's empty? out=out[..0]?
out:Int=New Int[0]
(Obviously the array out needs to already exist)
(Obviously the array out needs to already exist)
so simonh, does yours work? I never tested it...
H&K fair enough, could shorted to New Int[] I believe?
H&K fair enough, could shorted to New Int[] I believe?
out=Null?
or do you need it to still think an array is defined?
or do you need it to still think an array is defined?
AngelD: yeah still need it to be an array.
You lazy git!
lol, I had to go an eat dinner when I saw Simon's solution. no time, so busy etc ;-)