I see a lot of procedure/function in PB is having optional parameter
For example, Result = ButtonGadget(#Gadget, x, y, Width, Height, Text$ [, Flags])
The "Flags" is optional parameter
How can I create such procedure/function in PB with optional parameter?
[SOLVED] How to make optional parameter in procedure?
[SOLVED] How to make optional parameter in procedure?
Last edited by avatar on Sat Apr 24, 2010 8:56 am, edited 1 time in total.
Re: How to make optional parameter in procedure?
Code: Select all
Procedure Test(A, B, C=2)
EndProcedure
Test (2,3)
Test (2,3,4)
The best preparation for tomorrow is doing your best today.