Sohan
Inconsistent exception handling in WD12 July 07, 2008 09:06PM |
Fabrice Harari
Re: Inconsistent exception handling in WD12 July 08, 2008 01:25PM |
Piet van Zanten
Re: Inconsistent exception handling in WD12 July 08, 2008 10:27PM |
Sohan
Re: Inconsistent exception handling in WD12 July 09, 2008 12:28AM |
Sohan
Re: Inconsistent exception handling in WD12 July 09, 2008 01:12AM |
Quote
Piet van Zanten
why do you want to test the existence of a procedure ahead of it's use? If you call it and you get an error, process the error to do just nothing. (Saves some code lines too)
Quote
Piet van Zanten
Of course this needs some extra adaptations that you probably want to avoid. However, it will make your code less vulnarable for future changes in Windev
Sohan
Re: Inconsistent exception handling in WD12 *SOLVED* July 16, 2008 05:36PM |
WHEN EXCEPTION IN ExceptionThrow(903,"Mismatched number of parameters") DO END WHEN EXCEPTION IN ExecuteProcess(...) // Call a procedure, possibly with the wrong number of parameters DO sErrMesg = ExceptionInfo(errFullDetails) ELSE sErrMesg = "No Exception" END Trace(sErrMesg)This effectively replaces exception 1003 (which fails to be raised in WD12) with exception 903.