Gambas Connection Database

I took from documentation of gambas, how to make connection to mysql. Before i wrote example to make connection with mysql, you can read here.
and this example from documentation of gambas
DIM hResult AS Result
DIM sCriteria AS String
DIM iParemeter AS Integer

' Same as Select * from tblDEFAULT where id = [parameter value]
sCriteria = "id = &1"
iParameter = 1012

$hConn.Begin

hResult = $hConn.Edit("tblDEFAULT", sCriteria, iParameter)
' Set field value
hResult!Name = "Mr Smith"

' Update the value
hResult.Update
$hConn.Commit

0 comments:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.