[Gambas-user] using try when access devices shadow the errors

PICCORO McKAY Lenz mckaygerhard at gmail.com
Wed Aug 1 20:37:19 CEST 2018


in  other email from tobias, mentioned that Catch may shadowed the errors
if  i used devices..

'' generic open port procedure
    Try SComm.Close()
    SComm = New SerialPort As "SComm"
    SComm.PortName = puerto
    SComm.Speed = 9600
    SComm.Parity = 0
    SComm.DataBits = 8
    SComm.StopBits = 1
    SComm.FlowControl = 2
    Try SComm.Open()
Catch
    Print "error device" & Error.Text

exactly if "Try" wil ignore errors, so how to property propagate error to
up class in inherits?

a good question for good desing, so we cannot always write tode for school!

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180801/f7344c7d/attachment.html>


More information about the User mailing list