Function Parameters

BlitzPlus Forums/BlitzPlus Programming/Function Parameters

Mordax_Praetorian(Posted 2004) [#1]
I made a function with 6 parameters

Is there any way to make some of them default to certain values so I dont have to type them every time?


CS_TBL(Posted 2004) [#2]
blah(1,2,3) ; <- is valid, inside the function: d=1, e=4 and f$="monkey"
end

function blah(a,b,c,d=1,e=4,f$="monkey")

end function



Mordax_Praetorian(Posted 2004) [#3]
thanks