Code: Select all
Procedure p(a=1, b=1, c=1)
ProcedureReturn a + b + c
EndProcedure
Debug p(#PB_Ignore, #PB_Ignore, 0) ; should return 2Code: Select all
Procedure p(a=1, b=1, c=1)
ProcedureReturn a + b + c
EndProcedure
Debug p(#PB_Ignore, #PB_Ignore, 0) ; should return 2Code: Select all
Debug "#PB_Ignore = " + #PB_IgnoreCode: Select all
Procedure.i p(a.b=1, b.b=1, c.b=1)
ProcedureReturn a + b + c
EndProcedure
Debug p(#PB_Ignore, #PB_Ignore, 0) ; should return 2
;ivalue.i = #PB_Ignore
;Debug #PB_Ignore
;Debug ivalue
Code: Select all
#PB_Ananas = 1
Procedure pizza(a, b, c)
ProcedureReturn a + b + c
EndProcedure
Debug pizza(#PB_Ananas, #PB_Ananas, 0) ; return 2Code: Select all
Macro m(a=0,b=0,c=0)
Debug a+b+c
EndMacro
m(,1) ; should give 1 (b=1)why you want to get 2 as result, what is a wrong result for that operation???Procedure p(a=1, b=1, c=1)
ProcedureReturn a + b + c
EndProcedure
Debug p(#PB_Ignore, #PB_Ignore, 0) ; should return 2
Having optional parameters anywhere, not only at the end of the "parameter list"