<div dir="ltr"><div>hi tobias,thanks and but I am confused, aparto of that i not clear if i dismayed or impressive with your answer, I have not slept for several hours now between finding what I do wrong and the daily work... and before answering each line of your previous email, I need to add for you and for everyone else something I could se and found:<br><br>I removed the $prindev.rp line and included it right after inside the funtion of reading the port inside each class that inherits, and I got some answers just in a few moments, this in addition what you say about using datediff puts part of the problem in alcaratorias, but I'll explain why I don't want to marry with native dates in the following lines ...<br><br></div>let's anwers for all only the important mail and dont worry i'm happy that more than one answwer inclusive for even if it was to claim something:<br><div><div><div class="gmail_extra"><div class="gmail_quote">2018-08-01 12:06 GMT-04:00 Tobias Boege <span dir="ltr"><<a href="mailto:taboege@gmail.com" target="_blank">taboege@gmail.com</a>></span>:<br><br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">That's it, I guess, kind of. I can only speak for myself of course, but<br>
I got the impression from some threads in recent months that you don't<br>
really know what you are doing in Gambas on a fundamental and architectural<br>
level and then it takes more elaborate answers to be helpful. In addition<br></blockquote><div>now i dissasembly each part of the ideas and program or future programs in little modules to test <br>and as you noted with json, serial port print, and others... after work i paste code in main project<br></div><div>so i try to emulate the JAVAEE methods to develop in a languaje that are more identical to pascal or C<br></div><div><br></div><div>of course guys libraries it's the right answer to, but unfortunatelly implies absolute paths<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
to that, your questions take me, personally, more effort than others to<br>
get behind before I even think of answering, so I mostly ignore them<br>
altogether. Instead of posting a real-world question with your awkward<br></blockquote><div>i feel so honour with that thanks! tobias, <br>so my questions are great pieces of codes and ideas <br>that challenge not only minds, also priograming skills ;-)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">questions. On the upside, your English wasn't a problem for me this time.<br></blockquote><div>ironic, the first email was the lasted translated usin deepl translator <br></div><div>but also my fault not reading before sending.. <br><br>and yes i always write in a hurry, i not have stable internet connection so can fail for hours/days<br></div><div>the problem of you guys and current gnu/linux workd its assumed that all people have 24/7 internet resource..<br></div><div>i noted that mayor countries that not use gnu/linux software are those where not are enough resources..<br></div><div>now again ironic!? not just are logic!<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-"></span>This sounds like a perfectly good plan. Inheritance does exactly that.<br>
If you want to confirm that it works, write simple classes first,<br>
with your desired methods, derive a few classes, override methods and<br>
most importantly have everything just print text, like in the attached<br>
example. That way, you don't have the complexity of a SerialPort to<br>
deal with just to see if inheritance fits your design.<br></blockquote><div>i try to paste as example and explain as most posible inclusive put some at the gambas wiki<br></div><div>so more other novice uses can avoid asking so much and coplex questions come event.. <br></div><div>so in that way, we can make more complex projects in conjuntion..<br></div><div>that's the other part of the idea<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-">
</span>The opening of the serial port may have failed. Your pringeneric.op()<br>
function has this:<br>
<br>
  Try SComm.Open()<br>
  Catch<br>
    Print "error device" & Error.Text<br>
<br>
Since you use Try, the error will be shadowed and you don't get error<br></blockquote><div>so now i noted that, but not know that, this are in some place of the wiki?<br></div><div>i think it's a important note<br><br></div><div>in that case i must use/raised the exception righ?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
reporting via Catch, i.e. you won't know if opening failed. That's exactly<br>
what Try does: ignore errors. My normal user has no permissions to access<br>
/dev/ttyS0 and that error is ignored by your code, leading to another<br></blockquote><div>yes was one of the problem yesterday, today her enoted few hours ago in the other machine<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
error later. It may be different on your system, but be sure to check it<br>
and remove the Try.<br></blockquote><div>as i said what about raised the error using the Error.Propagate ?<br></div><div>and also i must point again that that note <br>about <b>catch and eror shadow  must be linked to Error.Propagate in the wiki</b><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Well, try again once you're sure that the port opens at all. Then, the<br></blockquote><div>today at the morning<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
next issue that I can spot is that you declare the event name "SComm" but<br>
don't use it at all to intercept events. No wonder you don't get any.<br></blockquote><div><b>please that parti, i need more clear ideas of them, but the english language are a barrier<br></b></div><div><b>a kind of more "example for dummies" can be in that point?</b><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

I also see the question<br>

> Print printodev.dataread ' why here  the inhereits does not prin the printer buffer?<br></blockquote><div>as i wrote in this mail at begining, <br>i put the reading procedures rules just after write inside each class and got something <br></div><div>aparto fo the note about datediff from you this angree me, due seem i cannot read later<br></div><div>but as you also said, i not use the event's really! so need help about that ,but need "exampel for dummy"<br></div><div><br><br></div><div>about the date i'll abort in new mail, so continues about the variable type, this are notable:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
PS: You didn't ask for this, but it caught my attention:<br>
<br>
> Private printodev As Variant<br>
<br>
in printermanager. The Variant is too generic. A Variant can hold anything,<br>
so it works, but it won't tell anyone reading the code that printodev is<br>
actually an instance of printobixolo or printoepson. Luckily, you use<br>
inheritance. You can declare printodev to be of the common type that<br>
printobixolo and printoepson inherit from:<br>
<br>
> Private printodev As pringeneric<br></blockquote><div><br></div><div>doe sdo not work, seems if you see the new constructor, got a runtime error about type of class<br></div><div>so that's  why the variant<br><br></div><div>and i noted so you run the code in your mind, wow!<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-HOEnZb"><font color="#888888"><br>
-- <br>
"There's an old saying: Don't change anything... ever!" -- Mr. Monk<br>
</font></span><div class="gmail-HOEnZb"><div class="gmail-h5"><br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</div></div></blockquote></div><br></div></div></div></div>