function return $string ?
Blitz3D Forums/Blitz3D Beginners Area/function return $string ? Function Text$(la$)
a Thanks DJwoodgate :)
Your example code will not work even if you correct the spelling error. It is certainly possible to return a string from a function though:
Print gettext$()
Function gettext$()
Return "this is returned text"
End Function
Print gettext$()
Function gettext$()
Return "this is returned text"
End Function
How about this:
bla$=Input$("")
Print gettext$(bla$)
WaitKey
Function gettext$(bla$)
bla$=bla$+" has been modified"
Return bla$
End Function
or this:
result$=gettext$(Input$(""))
Print result$
WaitKey
Function gettext$(bla$)
bla$=bla$+" modified"
Return bla$
End Function
P.S. so long since i posted here i've forgotten how to do codeboxes, sorry
bla$=Input$("")
Print gettext$(bla$)
WaitKey
Function gettext$(bla$)
bla$=bla$+" has been modified"
Return bla$
End Function
or this:
result$=gettext$(Input$(""))
Print result$
WaitKey
Function gettext$(bla$)
bla$=bla$+" modified"
Return bla$
End Function
P.S. so long since i posted here i've forgotten how to do codeboxes, sorry
Dazman -
{codebox}
{/codebox}
though of course, SQUARE brackets!
{codebox}
{/codebox}
though of course, SQUARE brackets!
Thanks Malice
:-)
no problem ;-)