Page 1 of 1

How do you use ShowStatus?

Posted: Tue 09 Dec 2008 14:42
by PhilNS
I sure this has been asked before but after trawling pages of your forums I gave up.

How do you use TMyServerControl.ShowStatus and will it show me how long the MySQL server has been running on the system?

I am using Dephi6 on an XP system.

How about adding a topic search on your forum there must be tonnes of useful advice in all those pages!

Posted: Thu 11 Dec 2008 12:44
by Dimon
To get TMyServerControl.ShowStatus you should use TMyServerControl as usual DataSet: display it in dbgrid, or use Fields[].
To know how long the MySQL server has been running you can use the Uptime variable, like this:

Code: Select all

  MyServerControl.ShowStatus;
  strTime := MyServerControl.Lookup('variable_name', 'Uptime', 'value');

Posted: Thu 11 Dec 2008 12:44
by Dimon
To search information on this forum you can use the 'Search' button.