LogiView

Function 'widget_id_tab'

     

This function returns the ID of the current widget.

When called with the ID of a widget in the Java client, it returns:

 

Syntax:

  widget_id_tab(widget_id()
 

I/O parameters:

{WDG_ID|0}

{WDG_ID}

ID of the widget to be closed.

{0}

Current widget.
 

 

 

Return value:

 
{INT_VAR}
  • The widget ID of the active child-widget
  • 1 to indicate that this is not a combined form. In this case, call dal_wdg_get_son to get all opened child widgets.
 

Example:

  Declaration of Variables
 
10	 RES = widget_id_tab(widget_id())
20	 if (RES == 0)
30	   put(strprint("In Combined Form %s on sub-form", widget_name(widget_id())))
40	 elseif (RES == 1)
50	   put(strprint("Not a Combined Form: %s. Call wdg_get_son to get all child widgets", widget_name(widget_id())))
60	 else
70	   put(strprint("In Combined Form %s on tab %s", widget_name(widget_id()), widget_name(RES)))
80	 endif