Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sqlexec to try insert record on mysql database
Message
From
19/07/2005 21:45:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Sqlexec to try insert record on mysql database
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
MySQL
Miscellaneous
Thread ID:
01034083
Message ID:
01034083
Views:
58
The following statement is issued to insert a record on mysql database. If issue it on command window of VFP the record is inserted, but if issue it inside method of form the record is not inserted and retval returns -1.

retval = SQLEXEC(lnHandle,'INSERT INTO fcdl.fatura (codigo, referencia) VALUES (' + m.codigo + "," + m.dtinvertida + ')')

What is wrong?
Antonio Carlos Kleinübing
Systems Analyst
Next
Reply
Map
View

Click here to load this message in the networking platform