Hi,
I have a class which subclass OLE MSCOMM32.ocx. I have code as following:
myclass.InitMy (MSComm32)
this.CommPort=2
this.Settings="9600,N,8,1"
this.PortOpen=.t.
this.InputLen=1
**do whatever**
When my application go through this method, I get "Invalid port number" ERROR.... it seem to be I don't install COM2 in my machine. Therefore, I place my error handle in myclass.ERROR().
My question is how could I exit from myclass.InitMy() if error occur? At this moment, VFP will continue with the rest of code even error occurs, therefore user will get other error cause by the previous error!!!
Any ideas?
Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...