Quiero comenzar con sqlite

User avatar
MarioG
Posts: 1356
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: Quiero comenzar con sqlite

Post by MarioG »

SORRY Mr Rao!
I found my error. I assigned my query to a var:

Code: Select all

cSelect:= "SELECT [b]Count(ID)[/b] FROM " +::cTablaSys + " WHERE APPNAME='"+cAppName+"'"
And after, I do

Code: Select all

? "Consulta", ::oRSDB:Fields( 'ID' ):Value
Very sorry :oops:
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Quiero comenzar con sqlite

Post by nageswaragunupudi »

First, try this simple program.

Code: Select all

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

G. N. Rao.
Hyderabad, India
User avatar
MarioG
Posts: 1356
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: Quiero comenzar con sqlite

Post by MarioG »

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
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Quiero comenzar con sqlite

Post by nageswaragunupudi »

With ADO,

Code: Select all

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
MarioG
Posts: 1356
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: Quiero comenzar con sqlite

Post by MarioG »

Thanks Mr. Rao
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
Post Reply