Migrate from DBFCDX TO SQL

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
fouednoomen
Posts: 188
Joined: Sun Oct 14, 2012 8:33 am
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL, Oracle, ODBC
Location: Tunisia

Re: Migrate from DBFCDX TO SQL

Post by fouednoomen »

yes by my mysql manager i can acces to my database
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Migrate from DBFCDX TO SQL

Post by Rathinagiri »

Can you show me the code?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
fouednoomen
Posts: 188
Joined: Sun Oct 14, 2012 8:33 am
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL, Oracle, ODBC
Location: Tunisia

Re: Migrate from DBFCDX TO SQL

Post by fouednoomen »

please find in this attached file the code

regards
foued
Attachments
client.rar
(1.25 MiB) Downloaded 297 times
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Migrate from DBFCDX TO SQL

Post by Rathinagiri »

Why did you include sql.prg in your project?

I think when you call connect2db, the one in sql.prg is called and hmgmysql is neglected.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
fouednoomen
Posts: 188
Joined: Sun Oct 14, 2012 8:33 am
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL, Oracle, ODBC
Location: Tunisia

Re: Migrate from DBFCDX TO SQL

Post by fouednoomen »

yes you can check in attached file project

regards

Foued
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Migrate from DBFCDX TO SQL

Post by Rathinagiri »

You have to delete the sql.prg.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
fouednoomen
Posts: 188
Joined: Sun Oct 14, 2012 8:33 am
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL, Oracle, ODBC
Location: Tunisia

Re: Migrate from DBFCDX TO SQL

Post by fouednoomen »

Thanks radhi ,

Now every thinks it's ok but the combobox of recouv does not work

@ 150,690 ComboBOX Control_6 FONT 'Arial' SIZE 11 WIDTH 220 ;
DISPLAYEDIT

ITEMSOURCE REPRESEN->COD_REP+' '+REPRESEN->RAISON
aTable := sql( oDB, "select cod_rep || ' ' || raison from represen order by cod_rep" )
for i := 1 to len( aTable )
win_1.control_6.additem( aTable[ i, 1 ] )
next i


regards

Foued
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Migrate from DBFCDX TO SQL

Post by Rathinagiri »

For string concatenation MySQL is different from SQLite.

You have to use this:

aTable := sql( oDB, "select concat( cod_rep, ' ', raison ) from represen order by cod_rep" )
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
fouednoomen
Posts: 188
Joined: Sun Oct 14, 2012 8:33 am
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL, Oracle, ODBC
Location: Tunisia

Re: Migrate from DBFCDX TO SQL

Post by fouednoomen »

it's ok

many thanks


Foued
Mario Mansilla
Posts: 270
Joined: Wed Aug 13, 2008 2:35 pm
Location: Córdoba - Argentina

Re: Migrate from DBFCDX TO SQL

Post by Mario Mansilla »

Hola Foued :
disculpa la molestia este proyecto de migrar cdx a mysql es algo por distintas razones se me posterga . Me es muy util el post que abriste .
Podrias decirme con que version de mysql estas trabajando y de donde puedo obtener el mysql manager .
Saludos .
Mario Mansilla

Hello Foued:
sorry for the inconvenience this project to migrate to mysql cdx is something for different reasons I postponed. I find it very useful post you opened.
Could you tell me what version of mysql are working and where I can get the mysql manager.
Greetings.
Mario Mansilla
Post Reply