Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Claudio Costa

  1. C

    Query returning memo fields instead of strings ( MariaDB )

    Im with Fox for several years , but Im newby with MySql, MariaDB. I was using tinytext on text fields, now that Ive changed to char is returning ok. Thanks everybody for your help and patience.
  2. C

    Query returning memo fields instead of strings ( MariaDB )

    Hello. the fields size in MariaDb are 20 and 50 characters , so they should appear ok in VFP , right ? Edit : I changed the fields in MariaDB to char type and now its working ok !
  3. C

    Query returning memo fields instead of strings ( MariaDB )

    And where I put the SELECT CAST line ? in the SQLEXEC ? sorry , im a newby in MySql / MariaDB.
  4. C

    Query returning memo fields instead of strings ( MariaDB )

    Hi again. Im using an MariaDb database with VFP but when doing a select the query is returning memo fields instead of strings. The numeric fields are returned ok. So , whats going on ?
  5. C

    MySql to VFP cursor

    Thanks for your help Miller , I appreciate it.
  6. C

    MySql to VFP cursor

    The connection is ok , I can insert rows in the mysql table. Its just the Select that is not given de results.
  7. C

    MySql to VFP cursor

    Hi again. Im trying to get the rows from an MySql Select to a VFP cursor but all I get is an result. Im using VFP 9 and MySql ODBC 8.0 Ansi driver My code: SQLEXEC(gnConnHandle,'SELECT referencia FROM artigos','abc') SELECT abc browse but what i get is this :
  8. C

    SQLEXEC crashes VFP

    Thank you Bleken ! I changed Select * From to Select just one field and it works . Now I got to learn how to fill a grid with the sql result
  9. C

    SQLEXEC crashes VFP

    Just discover that QLEXEC(gnConnHandle,'INSERT INTO works fine. Whats the problem with select * from ??
  10. C

    SQLEXEC crashes VFP

    I dont understand. SQLCONNECT('WebBrowser', 'root', 'mysql') TO gnConnHandle works , the connection is made it returns > 0 however SQLEXEC(gnConnHandle, 'SELECT * FROM artigos', 'mapa') crashs VFP
  11. C

    SQLEXEC crashes VFP

    it crashs in the SQLEXEC(gnConnHandle, 'SELECT * FROM artigos', 'mapa') line so I cant get any error list :(
  12. C

    SQLEXEC crashes VFP

    My code: STORE SQLCONNECT('WebBrowser', 'root', 'mysql') TO gnConnHandle IF gnConnHandle <= 0 = MESSAGEBOX('Cannot make connection', 16, 'SQL Connect Error') ELSE = MESSAGEBOX('Connection made', 48, 'SQL Connect Message') SQLEXEC(gnConnHandle, 'SELECT * FROM artigos', 'mapa')...

Part and Inventory Search

Back
Top