I think in this window after chose a window behind the data inside the window shows the content is associated with a window of the selected before
CodePudding user response:
Write a function in the back of the window, according to the switch in the window in front of the choose after calling this functionCodePudding user response:
Openwithparm (window, string)CodePudding user response:
The learn window traversal traversal with window control, to find out the corresponding instance, it is ok toTo traverse, because pb there's no way to know the content of the handle, only by name to traverse, when control of the classname () with you want, is returned. For example, to get the text of the specified name in a window controls
Global type f_find_st from function_object
End type
Forward as
Global function statictext f_find_st (ref window aw_win, string as_name)
End as
Global function statictext f_find_st (ref window aw_win, string as_name);//traverse control, find the same name
Long I, ll_rc
Statictext rn
Ll_rc=upperbound (aw_win. Control)
For I=1 to ll_rc
If aw_win. Control [I] the classname ()=as_name then
Rn=aw_win. Control [I]
The exit
End the if
Next
Return an rn
End the function
So, it's easy when use
Statictext lst_tmp
Lst_tmp=f_find_st (w_rep_xxx, 'st_shop)
Can then be lst_tmp for various operations
CodePudding user response:
After use openwithparm to open a window, and passed on parameterString ls_data
Ls_data="https://bbs.csdn.net/topics/aaaa"
Openwithparm (w_2, ls_data)
CodePudding user response:
Upstairs moderator positive solutionsCodePudding user response:
W_1 pass parameters openwithparm (w_2, ls_type)W_2 accept parameters ls_type=message. Stringparm
CodePudding user response:
This is really good, lane