With the advent of PbWin901 today, I thought now is as good a time as ever to try out different programming styles than what I am used to. One concept is Try Catch Finally.
Since GetLastError <> ERR then I have questions as to how Try Catch Finally would work with calling Windows Api??? (Docs only show use of ERR, so I suspect only PB errors are valid in a Try/Catch/Finally format???)
Also is Try/Catch/Finally only valid for errors? (or could it sometimes be used in place of "Select Case" if looking for an error? aka raise an error if value not found, or call the catch case if not found???)
Since GetLastError <> ERR then I have questions as to how Try Catch Finally would work with calling Windows Api??? (Docs only show use of ERR, so I suspect only PB errors are valid in a Try/Catch/Finally format???)
Also is Try/Catch/Finally only valid for errors? (or could it sometimes be used in place of "Select Case" if looking for an error? aka raise an error if value not found, or call the catch case if not found???)
Comment