hi all,
i have a problem with an update command.
this is my code:
sqlstmt = "SELECT color_code, description from colors "
connessione = search_conness("Colors")
lSuccess = sqlexec(connessione,sqlstmt,"ColorsData")
IF !check_query(lSuccess)
RETURN .F.
ENDIF
-- until here it works fine because i have my cursor colorsData full with
the records from sql table Colors
for xx=1 to 14
Esegui = "UPDATE Lista_Rep SET Lista_Rep.Des_Col"+ALLTRIM(STR(xx))+" =
ALLTRIM(NVL(ColorsData.descrizion,'')) WHERE
alltrim(Lista_Rep.Col"+ALLTRIM(STR(xx))+") = alltrim(ColorsData.color_code)
"
&Esegui
Esegui = "UPDATE Lista_Rep SET Lista_Rep.D_cd_Col"+ALLTRIM(STR(xx))+" =
ALLTRIM(NVL(ColorsData.descrizion,'')) WHERE
alltrim(Lista_Rep.cd_Col"+ALLTRIM(STR(xx))+") =
alltrim(ColorsData.color_code) "
&Esegui
next xx
-- lista_rep is a cursor with data that I use for printing.
I expect lista_rep.des_col to have the value of description but it does not
work.
Because i am new to fox I wonder if i am missing something...like select ,
use or other keyword.
any idea?
TIA