pb12.6環境,需要依據陣列內容動態更改資料視窗。
代碼:
old_select=dw_1.GetSQLSelect ( )
string shuzu[500]
陣列shuzu賦值 略
new_select=old_select+ ' where pid in (:shuzu) '
dw_1.SetSQLSelect(new_select)
dw_1.settrans(sqlca)
dw_1.retrieve(shuzu)
錯誤資訊為:
Select Error:SQLSTATE = 37000
[Microsoft][ODBC SQL Server Driver][SQL Server]':'附近有語法錯誤。
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/235085.html
標籤:DataWindow
