Let's take it, the program can run again. After adding an error log, it is found that there are many records that cannot be inserted. The error report is inconsistent with the incoming data type. Look carefully, it seems that there is no flaw. After analysis, the suspicious statement is:
Param = cmmd-> CreateParameter ("", ADTINYINT, ADPARAMINPUT, SIZEOF (BYTE), SMSGDATA15.BPOSACU;
BPOSACU is a BOOL type. Find the value of this variable in the error report is 1. Go to the database search, found that this field is 0 (field type Tiny Int). Ok. It should be the problem here. Can you do anything? No matter, first force to convert to the Byte type. Because I use sizeof (Byte)
Well. Therefore, modifications are:
Param = cmmd-> CreateParameter ("", ADTINYINT, ADPARAMINPUT, SIZEOF (BYTE), (Byte) (SMSGData15.bposacu);
After the program is running again, there is no such problem, but why is the BOOL type can't be used? Write for False, you can't do it for True. Although the problem is solved, this problem has been confused with me. . . . . .