After consult, generate dynamic datawindow, how to embed code, because the number TAB page is dynamic, so also dynamically generated datawindow, I dynamically generated TAB controls, in the dynamic datawindow,
Tab_1. Tabpage_1. Tab_2. OpenTab (uo_test, 0)
Tab_1. Tabpage_1. Tab_2. Control [j_1]. Text=ls_gnmc
N=integer (' 1 '+ string (m_1))
Openuserobject (ldw_cont [n], "datawindow", 0, 0)
Ldw_cont [n]. The dataobject='dw_ylzxlb'
Ldw_cont [n]. The visible=true
Ldw_cont [n]. Hscrollbar=true
Ldw_cont [n]. Vscrollbar=true
Ldw_cont [n]. Height=1200
Ldw_cont [n]. Width=5950
Setparent (handle (ldw_cont [n]), handle (tab_1. Tabpage_1. Tab_2. Control [j_1]))
Ldw_cont [n]. Settransobject (sqlca)
Ldw_cont [n]. Retrieve (is_rwsxh gs_yhm, ls_xz, li_gnxh)
I ask, how to generate code corresponding to the click event?
CodePudding user response:
To get too complicated
To set of tabpage control to control the dataobject, datawindow need only a
CodePudding user response: