-
1
- #1
vgulielmus
Programmer
The weekend is almost gone, but I miss the activity in this forum.
aa is a procedure with 3 parameters.
First call of the aa procedure is without the second parameter.
The second call pass .F. to the second parameter.
The first and the third parameter are integers, and the second is logical.
The question is how can distinguish the two calls ?
There is at least one solution, involving three (supplementary) lines / function calls in the aa procedure.
Respectfully,
Vilhelm-Ion Praisach
Resita, Romania
aa is a procedure with 3 parameters.
First call of the aa procedure is without the second parameter.
The second call pass .F. to the second parameter.
The first and the third parameter are integers, and the second is logical.
The question is how can distinguish the two calls ?
There is at least one solution, involving three (supplementary) lines / function calls in the aa procedure.
Code:
aa(1,,2)
aa(1,.F.,2)
PROCEDURE aa
LPARAMETERS p1,p2,p3
* How can distinguished the two calls
* in the first call p2 is missing
* in the second call p2 = .F.
ENDPROC
Respectfully,
Vilhelm-Ion Praisach
Resita, Romania