Home > database >  Could you tell me how to solve not all variables have binding
Could you tell me how to solve not all variables have binding

Time:10-12

This is my code, the runtime appear not all variables have binding
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 the
Error
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,
  • Related