PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → [WD20] Referencing a procedure in a dynamic tab control
[WD20] Referencing a procedure in a dynamic tab control
Started by guest, Mar., 18 2016 11:40 AM - 1 reply
Posted on March, 18 2016 - 11:40 AM
Hi,

I have a dynamic tab control. My Internal window has some procedures which must be called from a child window (most refresh things)

How can I call a procedure like

Win_main.tab_main[tab_main..alias].my_procedure() ?? (doesn´t work so)
Registered member
71 messages
Posted on June, 23 2016 - 7:26 AM
Hi Michael,
I used to work with dynamic tabs a lot last couple of weeks and this was something I had to solve as well.

I use this syntax.

oInternalWin is Control
oInternalWin <- TAB_Verze[sActivePaneAlias]
oInternalWin.iw_Construction_Verze.Save_IW_Controls(sActivePaneAlias)


sActivePaneAlias is name of active pane of your tab control
iw_Construction_Verze is name of internal window that is inside your pane
Save_IW_Controls is name of procedure saved under iw_Construction_Verze

I think you could try to solve it also with indirection but I use this solution.

Petr