Have to give function an identifier??

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

Picklesworth(Posted 2005) [#1]
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?


Bremer(Posted 2005) [#2]
As far as I know, you have to if you want to return something else than an integer.


Rob Farley(Posted 2005) [#3]
Likewise if you want to return a float you need function fdsfhs#(blah)


Ice9(Posted 2005) [#4]
and if you want to return a type ...


KuRiX(Posted 2005) [#5]
Function returntype.Mytype()
temp.Mytype = new Mytype

return temp
endfunction


Rook Zimbabwe(Posted 2005) [#6]
New stuff to know...


Picklesworth(Posted 2005) [#7]
Okay :)
Amazing that I haven't encountered all that except types yet!

Thanks.


Damien Sturdy(Posted 2005) [#8]
*Cygnus Harrases Mr PicklesWorth as stated in Sig*

....