Have to give function an identifier??

Blitz3D Forums/Blitz3D Programming/Have to give function an identifier??

Okay... Ignore my sig for this one post. It's rather odd. I think. Probably not though :)

Function FixHandleSpacing$(toFix$)
var$ = Replace(Trim(toFix$)," ","_")
Return Var$
End Function

I had to give my function a String identifier to make it work. I though Blitz does that for you?

As far as I know, you have to if you want to return something else than an integer.

Likewise if you want to return a float you need function fdsfhs#(blah)

and if you want to return a type ...

Function returntype.Mytype()
temp.Mytype = new Mytype

return temp
endfunction

New stuff to know...

Okay :)
Amazing that I haven't encountered all that except types yet!

Thanks.

*Cygnus Harrases Mr PicklesWorth as stated in Sig*

....