string r_ddh,r_shbz
r_ddh = sle_ddh.text
if rb_qb.checked = true then
r_shbz="%"
dw_ddcx.retrieve()
end if
if rb_ysh.checked = true then
r_shbz= "Y"
dw_ddcx.retrieve(r_ddh,r_shbz)
end if
if rb_wsh.checked = true then
r_shbz = "N"
dw_ddcx.retrieve(r_ddh,r_shbz)
end if
上面是一段按訂單號(ddh),和審核標志(shbz)查詢的程式,但是實作不了,不曉得問題出在哪里(設了引數的),麻煩各位高手幫哈忙,謝謝!!!
uj5u.com熱心網友回復:
提示什么錯誤啊?說清楚啊dw_ddcx.retrieve()
dw_ddcx.retrieve(r_ddh,r_shbz)
dw_ddcx.retrieve(r_ddh,r_shbz)
能行啊,檢索引數,設定了嗎?設定了幾個,dw_ddcx.retrieve()中要輸入幾個
uj5u.com熱心網友回復:
dw_ddcx.retrieve()
dw_ddcx.retrieve(r_ddh,r_shbz)
這樣子肯定是不對的·看你資料視窗里定義了幾個引數·然后引數保持一致
uj5u.com熱心網友回復:
用到模糊查詢的話,資料窗中條件要用likeuj5u.com熱心網友回復:
string r_ddh,r_shbzr_ddh = sle_ddh.text
if rb_qb.checked = true then
r_shbz="%"
dw_ddcx.retrieve(%,%) //資料窗中ddh,shbz條件要用like
end if
if rb_ysh.checked = true then
r_shbz= "Y"
dw_ddcx.retrieve(r_ddh,r_shbz)
end if
if rb_wsh.checked = true then
r_shbz = "N"
dw_ddcx.retrieve(r_ddh,r_shbz)
end if
uj5u.com熱心網友回復:
設定了兩個引數,按訂單號,和審核標志(已審核,未審核,全部)查詢uj5u.com熱心網友回復:
引數查詢的話,里面的引數要寫的如果是模糊查詢的話,資料視窗的資料源里引數設定要用like
uj5u.com熱心網友回復:
關鍵是在資料視窗中的where 條件中的operator 要選可like轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/97903.html
標籤:腳本語言
下一篇:動態資料表資料添加
