[Gambas-user] Test Module, First try

Brian G brian at westwoodsvcs.com
Sun Jul 26 22:17:49 CEST 2020

How does that trick work, it is not very intuitive to understand
Please explain
Brian Sunday, 26 July 2020, 11:49AM -07:00 from Christof Thalhofer  chrisml at deganius.de :

>Btw: I saw something I do not recommend for testing situations.
>You used 'Try' together with 'If Error Then'. I can only say that I have
>a bad feeling with that. Because at minimum Error should be cleared
>afterwards with Error.Clear, which does not happen in your code.
>I add a version of the function CompareStringArray to show that the same
>can be achieved without 'Try' through the nice (or ugly depending on the
>view) trick:
>bResult = sA[i] = sB[i]
>Alles Gute
>Christof Thalhofer
>Dies ist keine Signatur
>----[  http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200726/cb4ce74f/attachment-0001.html>

More information about the User mailing list