Quiero comenzar con sqlite

Re: Quiero comenzar con sqlite

Postby MarioG » Thu Aug 27, 2020 1:29 am

SORRY Mr Rao!
I found my error. I assigned my query to a var:
Code: Select all  Expand view  RUN
cSelect:= "SELECT Count(ID) FROM " +::cTablaSys + " WHERE APPNAME='"+cAppName+"'"

And after, I do
Code: Select all  Expand view  RUN
? "Consulta", ::oRSDB:Fields( 'ID' ):Value

Very sorry :oops:
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: Quiero comenzar con sqlite

Postby nageswaragunupudi » Thu Aug 27, 2020 2:59 am

First, try this simple program.

Code: Select all  Expand view  RUN

oRs := FW_OpenRecordSet( oCn, "select * from TbConfig" )
XBROWSER oRs
oRs:Close()
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10651
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Quiero comenzar con sqlite

Postby MarioG » Thu Aug 27, 2020 4:30 pm

Thanks Mr. Rao
Two questions
1.- oRs:ID return 'the object not exist'
oRs:Fields( 'ID' ):Value is unique form?
2.- If I need Find/Seek; what can I do the seek?
Or tell me where read

Many thanks, again
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: Quiero comenzar con sqlite

Postby nageswaragunupudi » Thu Aug 27, 2020 5:13 pm

With ADO,
Code: Select all  Expand view  RUN
oRs:Fields( 'ID' ):Value

is the only way, unless you use FWH TRecSet class.

ADO from here
https://www.w3schools.com/asp/ado_intro.asp

Good tutorial for SQL
https://www.w3schools.com/sql/
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10651
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Quiero comenzar con sqlite

Postby MarioG » Thu Aug 27, 2020 7:03 pm

Thanks Mr. Rao
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 58 guests