hi
i have one function which send message named sendmessage.this function returns false if sending failed.now i want to give 3 tries to this function in case of failure.i meant this function will be called maximum three time in case of failure.and in all 3 attempts message being not send then i want to call a error routine.how to do this.
hope it make some sense.Code:bReturn = SendMessage(BatchGuid, "Admin", "TR",Senderid, 1, asLines(i), Null) If Not bReturn Then 'raise an error mClientErrorAdd asLines(i), _ ERR_NO_GHS_MESSAGE_SEND End If



LinkBack URL
About LinkBacks
Reply With Quote


Bookmarks