mySQLConnection.State Message d'erreur
Bonjour;
J'ai un petit probeme pour remonter le status d'une connection d'une base mySQL :
voici ce que j'essai de faire ().
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
| procedure TWinForm1.TWinForm1_Load(sender: System.Object; e: System.EventArgs);
begin
myConnection.ConnectionString := 'Persist Security Info=False; database=test;server=localhost;Connect Timeout=30;user id=root; pwd=toor';
Connect();
end;
procedure TWinForm1.Connect();
begin
myConnection.Open();
sb.Panels[0].Text := 'Server Version: ' + myConnection.State.ToString();
end; |
Et quand je compile je reçois ce message d'erreur :
Citation:
record or class type is required sur myConnection.State.ToString
J'utilise :
BDS2006 + windows XPpro .
MySQLConnector NEt 1.0.10.1
J'ai deja verifié le help ,et je ne vois pas vraiment ou il es le probleme .
koul.