Migrate from DBFCDX TO SQL
Moderator: Rathinagiri
- 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
yes by my mysql manager i can acces to my database
- 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
Can you show me the code?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- 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
please find in this attached file the code
regards
foued
regards
foued
- Attachments
-
- client.rar
- (1.25 MiB) Downloaded 296 times
- 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
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.
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.
South or North HMG is worth.
...the possibilities are endless.
- 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
yes you can check in attached file project
regards
Foued
regards
Foued
- 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
You have to delete the sql.prg.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- 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
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
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
- 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
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" )
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.
South or North HMG is worth.
...the possibilities are endless.
- 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
it's ok
many thanks
Foued
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
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
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