PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Writing function with n optional parameters
Writing function with n optional parameters
Iniciado por guest, 13,ago. 2016 05:40 - 2 respuestas
Publicado el 13,agosto 2016 - 05:40
Hello Gang !!
This function OpenWindow should opens the window with n optional paramteres according to the OpeningMode.

OpenWindow(openingmode,WindowName,parameters)

SWITCH OpeningMode
CASE 1:
Open( [, [, [ , ... ]]])
CASE 2:
OpenChild( [, [, [, ... ]]])
case 3:
OpenSister( [, [, [, ... ]]])
other case
Open( [, [, [ , ... ]]])
END

How to write function OpenWindow with n optional parameteres so that i could get n optional paramters in all cases ..??

Thanks
Publicado el 13,agosto 2016 - 20:07
Hi

maybe
Add a prameter and pic it up in a procudure on the other side. or ad one parameter that acts as rarange
Publicado el 15,agosto 2016 - 15:14
Try this:

PROCEDURE Open(WinName, *) Trace(WinName) WL.Open(WinName, MyParameters[2 TO ])
I got this from here:
http://doc.windev.com/en-US/…

HTH
Sebastian