Buenos dias señores:
Tal vez no me he explicado bien.
Con el código siguiente y con los parámetros basados en un sitio verificado y funcionando,
al ejecutar el siguiente código, no sólo no me muestra nada, sinó que me saca de la
pantalla sin mostrar absolutamente nada.
FWCONNECT oCn HOST cServername USER cUsername PASSWORD cPassword DB cDatabasename
if oCn == nil
? "Connect Fail"
return nil
else
oRs := oCn:RowSet( "lecturas" ) // "lecturas" es una tabla de cDatabasename
XBROWSER oRs FASTEDIT
oCn:Close()
endif
Les agradecería mucho vuestra opinión.
Gracias !
return nil
FWCONNECT NO FUNCIONA
FWCONNECT NO FUNCIONA
[url=http://drugstoreviewer.com/]drugstoreviewer.com[/url]
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: FWCONNECT NO FUNCIONA
It is clear.
Let us test it step by step.
Please copy this program to \fwh\samples folder and then build and run with
buildh.bat or buildx.bat.
Let us test it step by step.
Please copy this program to \fwh\samples folder and then build and run with
buildh.bat or buildx.bat.
Code: Select all
buildh <yourprgname>
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: FWCONNECT NO FUNCIONA
nageswaragunupudi wrote:It is clear.
Let us test it step by step.
Please copy this program to \fwh\samples folder and then build and run with
buildh.bat or buildx.bat.
Code: Select all
buildh <yourprgname>
It's Work Mr.Rao !!!
Lo probé donde ud. me indicó y funcionó.
HB_SetCodePage("TRWIN")
FWCONNECT oCn HOST cServername USER cUsername PASSWORD cPassword DB cDatabasename PORT 3306 CHARSET "latin5"
if oCn == nil
msginfo("Error de conexión")
return nil
else
msginfo("Se conecto !!!")
XBROWSER oCn:lecturas
* oCn:Close()
endif
return nil
[url=http://drugstoreviewer.com/]drugstoreviewer.com[/url]
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: FWCONNECT NO FUNCIONA
So,
1) Please ensure you are linking all the libs in buildx.bat / buildh.bat in your application script.
2) Copy the same libmysql.lib from fwh\samples folder to your exe path.
1) Please ensure you are linking all the libs in buildx.bat / buildh.bat in your application script.
2) Copy the same libmysql.lib from fwh\samples folder to your exe path.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: FWCONNECT NO FUNCIONA
The link was the same as the buildx.bat. What I did was add libmysql.dll and libmariadb.dll to my folder and it worked.nageswaragunupudi wrote:So,
1) Please ensure you are linking all the libs in buildx.bat / buildh.bat in your application script.
2) Copy the same libmysql.lib from fwh\samples folder to your exe path.
If it’s not too much to ask, would you be kind enough to give me a link to start developing programs with mariadb as for newbies ?
Thank you very much for your help!
Greetings from Argentina !
Pedro Lavallén.
[url=http://drugstoreviewer.com/]drugstoreviewer.com[/url]
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: FWCONNECT NO FUNCIONA
libmysql.dll is enough.
First please study all the links contained here
http://forums.fivetechsupport.com/viewt ... =3&t=33286
Here, you find links to WIKI also.
Please also study all maria*.prg samples in fwh\samples folder.
Basically you need to learn
1) to "connect to the server" and handle the connection object.
2) to open data (tables) as rowsets and handle rowset class.
We are always here to support you at any time.
First please study all the links contained here
http://forums.fivetechsupport.com/viewt ... =3&t=33286
Here, you find links to WIKI also.
Please also study all maria*.prg samples in fwh\samples folder.
Basically you need to learn
1) to "connect to the server" and handle the connection object.
2) to open data (tables) as rowsets and handle rowset class.
We are always here to support you at any time.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: FWCONNECT NO FUNCIONA
Thank you very much my friend.
I will study the topics you suggest.
A big hug !
I will study the topics you suggest.
A big hug !
[url=http://drugstoreviewer.com/]drugstoreviewer.com[/url]