When dw_imp, retrieve, and retrieve it four small DW (dw_1, dw_2 dw_3, dw_4)
My demand is to retrieve, caught inside four small DW (dw_1, dw_2 dw_3, dw_4) number of pen,
Determine whether determine how data, no data is automatically shut down the Windows,
The following writing, however, hold the pen number inside, don't know where the problem is, please grant instruction & gt; <" !
PS. I am sure I dw_1 ~ 4 ran inside the SQL is information
Code
datawindowchild dw_c
Int li_count
Ib_open=false
Dw_imp. Retrieve (ls_month_thr gs_date, ls_chr_no)
//dw_1
Dw_imp. Getchild (' dw_1, dw_c)
Li_count=dw_c. Rowcount ()
If li_count & gt; 0 then ib_open=true
//dw_2
Dw_imp. Getchild (' dw_2 dw_c)
Li_count=dw_c. Rowcount ()
If li_count & gt; 0 then ib_open=true
//in a data didn't leave
If ib_open=false then
Cb_exit. TriggerEvent (clicked!
End the if
CodePudding user response:
Dw_imp. Getchild (' dw_1, dw_c)dw_c. Settransobject (sqlca)
Dw_c. Retrieve ()
Li_count=dw_c. Rowcount ()
If li_count & gt; 0 then ib_open=true
Two sentences
CodePudding user response:
LSH or not greatly & gt; . & lt;"Don't getchild for DDDW only? & gt; <?
I am for the DataWindow inside
I have tested you provide method
1.
Dw_c. Settransobject (sqlca)
Dw_c. Retrieve ()
2.
Dw_c. Settransobject (sqlca)
Dw_c. Retrieve (ls_month_thr gs_date, ls_chr_no)//deliberately give a parameter
Write
However, I feel very strange?
My DW
Dw_imp. Retrieve (ls_month_thr gs_date, ls_chr_no)
When this line in the retrieve
In four DW will automatically retrieve (with setting the corresponding parameter)
Why dw_c to retrieve a @ @?
But the result still can't & gt; <"
CodePudding user response:
The compound statements of nested statements do not use getchildGo to see the
http://blog.csdn.net/huwenqing1971/article/details/3914018
CodePudding user response:
SjlionThat I'm a little see not too understand, whether the mean PB cannot do
DW in DW seems to become array, first to determine whether can be specified to grasp array?
Not tested such as left
Dw_imp. Object. Dw_1 [1]. The object. The DataWindow. Data
I just want to simple to grasp a number for judgment & gt; . & lt;" Really can't?
CodePudding user response:
Just the Debug wrong ~ I think of that, so that we can "^ ^ YAIndeed inside use arrays
CodePudding user response:
Build a computed columns, rowcount (), after obtain dw_1 reference, value directly