Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Update
Message
From
07/09/2005 16:12:02
 
 
To
07/09/2005 15:42:02
Fred Wood
Madera Systems Consulting
Mill Valley, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01047453
Message ID:
01047489
Views:
12
>Well that certainly works - thanks, but I still do not understand why the original code did not work.

m.carloc = ThisForm.carousel + ;
PADL(LTRIM(STR(ThisForm.bin, 2, 0)), 2, "0") + ;
PADL(LTRIM(STR(ThisForm.shelf, 2, 0)), 2, "0") + ;
ThisForm.loc

lc_update = [carloc = ?m.carloc]
lc_item = ThisForm.citem

*-- Update ICITEM table
lcSQL = [UPDATE icitem SET ] + lc_update + [ WHERE item = ] + lc_item
lnRetVal = SQLEXEC(ln_connection, lcSQL)


Given that Sergey's code worked (doesn't it always)
I THINK the equivalent would have been
lcSQL = [UPDATE icitem SET ] + lc_update + [ WHERE item = '] + lc_item  + [']
or possibly
lcSQL = [UPDATE icitem SET ] + lc_update + [ WHERE item = ?lc_item]
Previous
Reply
Map
View

Click here to load this message in the networking platform