| Hyderabad Jobs | Book Website | ![]() |
I Love Hyderabad | Hyderabad Colleges |
| Home | Business Emails | Hyderabad Classifieds | Contact Us | |
| 7 Wonders of Hyderabad | Web Hosting | Yellow Pages | Our Network | |
Mastering PowerBuilder
Starting/Stopping DPB Server
In the above script, we are starting and stopping the server depending on the text displayed on the CommandButton. If it is 'Start Server' then we are starting the server and changing the text to 'Stop Server' and vice-versa. After this function call, we are calling Listen() function to make the server to listen to clients. Once the server starts, we are calling Timer() function to fire the timer event every 60 seconds to bring the connected users information and to refresh the screen. Timer event script is explained in a moment. To make the server to stop listening to the clients, we are calling StopListening() function at the transport object and enabling/disabling appropriate CommandButtons. The following code is written for cb_server_options CommandButton's clicked event toggles the CommandButton's text between Console, Server Options and Save Options and takes action depending on the text of that CommandButton.
We need to change the CommandButton's text to 'Save Options' from the dw_options's ItemChanged event.
|
| Copyright © 1996 - 2006 HamaraShehar.com Pvt. Ltd. All Rights Reserved.
Domain Registration, Website Design, Website Hosting by HamaraShehar.com |