Dear Sirs,
    I've obtain you're e-mail into the channel #gluc in chat (irc.freenode.com) by a user.
I have a question about Gambas.
I've installed this and it works fine 100%. If I launch the database example included into Gambas usin' mysql it works fine,
but if I make copy&pase only the part about connection to mysqlinto my project , when I try to launch it I receive this error:
[cite on]
Unkon Identifier. Connection
[cite off]
 
Here's my code:
 
 
Public $conn as Connection (<<<<<<<<<<<------- this is the string gambas give me error)
 
 
public sub ButtonConnection_Click()
 
try $conn.close
 
with $conn
    .Type="mysql"
    .Host="localhost"
    .login="root"
    .Password="XXXXXXXX"
end wirh
 
 
$conn.Name="myagenda"
 
$conn.Open
 
Message.Info("OK! Database connected!")
 
Catch
    Message.Error(Error.Text)
 
end
 
 
 
Public sub Form_Open()
    $conn = NEW connection
End
 
 
 
In my form there are only two buttons: one for the connection and one to make an insert action, and 2 textboxes.
 
 
 
Many thanks for you're gentle. Sorry for my english but I think you understand all the same.
 
Best Regards
 
 
Francesco  Cabigliera - Italy -
 
 
 
 
 
 
 
 
 
-------------------------------------------------------
F.Imm. - Fatturazioni Immediate S.r.l.-
-------------------------------------------------------
          Francesco Cabigliera
-------------------------------------------------------
            Servizio Tecnico
-------------------------------------------------------
           Tel. 0425-475.811
-------------------------------------------------------
 
 
_______________________________________________
GLUC mailing list
[EMAIL PROTECTED]
http://listas.unicauca.edu.co/mailman/listinfo/gluc

Responder a