About using the AdoQuery control to dynamically perform SQL query

zhaozj2021-02-17  50

// Use AdoQuery1 to perform SQL advanced query AdoQuery1-> Active = false; adoQuery1-> sql-> clear (); ANSISTRING SSS; SSS = ""; // Enter the SQL statement you want to execute in quotation 号号 a1-> sql-> Add (SSS); AdoQuery1-> Active = true; // After the query is executed, if the data content changes, you need to submit it with the post () method to be accepted, but when the POST method is executed, an editing mode error often occurs. So how can I avoid this error? The following code is a code that determines whether the POST method can be performed. / / Avoid error if (adoquery1-> state == dsedit) {adoquery1-> post ();} - Black soldier-Hoget

Welcome to [Black soldiers] website (Http://www.hrits.com )hoget@hoget.com

转载请注明原文地址:https://www.9cbs.com/read-29432.html

New Post(0)