Dw_2. SetTransObject (sqlca)
String cs_css
The string "ABC"
Dw_2. Accepttext ()
ABC=dw_4. Getitemstring (1, "names")
Messagebox (" ", ABC)
Cs_css=dw_2. Getsqlselect ()
Cs_css +="where z_goodsname=: ABC"
Dw_2. Setsqlselect (cs_css)
Dw_2. Retrieve ()
CodePudding user response:
Here can't use theError
Cs_css +="where z_goodsname=: ABC"
Instead of
Cs_css +="where z_goodsname='" + +" ABC ", "
It is ok
CodePudding user response:
Dw_2. Accepttext () should be dw_2 before. Retrieve (), not Retrieve data window, accepttext is go wrong,CodePudding user response:
Setsqlselect cannot take parameters, otherwise will go wrong, you can need not parameter, directly change the parameter in the where condition to retrieve parameter values, so every time to go,