I don't want the client to open if the server is not available. I tried sending a message to the server and trap the send error to select my action. However, I find that the programme goes past the line from which the message is sent before the error trapping routine acts.
So I decided to create an iteration immediately after the send message statement ( i have a separate routine for sending messages which is called in the init()). The iteration should break if the error condition is met, i.e if the error() routine sets a variable to a particular value.
But to my dismay that iteration never breaks, it goes on forever.
I am sure someone had to be faced with this problem, some point in time.
------------------------------------->
"I have sought your assistance on this matter because I have exhausted all the help that I can find. You are free to direct me to other source of help"
So I decided to create an iteration immediately after the send message statement ( i have a separate routine for sending messages which is called in the init()). The iteration should break if the error condition is met, i.e if the error() routine sets a variable to a particular value.
But to my dismay that iteration never breaks, it goes on forever.
I am sure someone had to be faced with this problem, some point in time.
------------------------------------->
"I have sought your assistance on this matter because I have exhausted all the help that I can find. You are free to direct me to other source of help"