You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
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???)
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???)
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: