Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete VFPrecord with ADO
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00152642
Message ID:
00152684
Views:
16
If oConn is your connection object then

lcSQL = "delete mytable where mykey = " + STR(myvalue)
lnResult = oConn.Execute(lcSQL)

should do it. However, as you know, this only marks the record for deletion. I seem to recall a thread about issuing a PACK via ODBC. You might want to search for it.

HTH

>How to delete a vfp record with ADO
>
>Kind regards
>
>
>Jan Dorresteijn
"It is an important and popular fact that things are not always what they seem. For instance, on the planet Earth, man had always assumed that he was more intelligent than dolphins because he had achieved so much -- the wheel, New York, wars and so on -- whilst all the dolphins had ever done was muck about in the water having a good time. But conversely, the dolphins had always believed that they were far more intelligent than man -- for precisely the same reasons." - Douglas Adams
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform