PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → open() vs OpenSister() pass parameter differnt?!
open() vs OpenSister() pass parameter differnt?!
Iniciado por markus.ratzesberger, 09,ago. 2019 11:19 - 1 respuesta
Publicado el 09,agosto 2019 - 11:19
I have a window with parameter (parameter is a table control):

PROCEDURE MyWindow( gTableArtikel is Control)


When I call it with open() all works fine:
Open(WIN_Filter,TABLE_QRY_xy)


Same window but call via OpenSister:
OpenSister(WIN_Filter,TABLE_QRY_xy)

creates an error:
...
'OpenSister' function, syntax 0

What happened?
An element of 'int' type cannot be converted to the 'control' type.

Error code: 1021
Level: fatal error
....

But Table_Qry_xy is a control!

ANy ideas?

THX
Markus
Miembro registrado
52 mensajes
Publicado el 09,agosto 2019 - 13:16
You can make this:

//use quotation marks in OPENSISTER
OpenSister(WIN_Filter,"TABLE_QRY_xy")

// in Win_Filter code use this:
Parsed_Control is Control
Parsed_Control <- {"MyWindow." + Parsed_Control,indControl} // MyWindow is the name of first window

// then use Parsed_Control the way you want

For nRow=1 to tablecount(Parsed_Control)
toastdisplay(Parsed_Control[nRow].colname1) // this is an example only
Next

good luck !