besteht die Möglichkeit in PB, Arrays als optionale Parameter einer Procedure zu definieren?
Ich würde gerne bei folgender Definition
Code: Alles auswählen
Procedure Call(url.s, method, Array postdata(1), Array params(1))
Code: Alles auswählen
Procedure Call(url.s, method, Array postdata(1), Array params(1))
Code: Alles auswählen
Structure MyArray
Array i.i(0)
EndStructure
Procedure Call(url.s, method, *postdata.MyArray=#Null, *params.MyArray=#Null)
If *postdata
Debug ArraySize(*postdata\i())
*postdata\i(1) = 456
EndIf
EndProcedure
Define postdata.MyArray : Dim postdata\i(10)
postdata\i(0) = 123
Call("Blub", 1, postdata)
Debug postdata\i(1)