Online Forums
Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.
Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.
Do not use the Contact page for technical issues.
- Forum
- Discussions
- QuickOPC-Classic in COM
- Reading, Writing, Subscriptions, Property Access
- convert eventargs in delphi
convert eventargs in delphi
I simply did:
eventArgs.Exception := CoCLRException.Create();
WriteLn(eventArgs.Succeeded);
Regards
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Thanks Alessandro
Please Log in or Create an account to join the conversation.
Let me see.... yes, it is most likely CoCLRException, in the imported mscorlib_TLB.pas.
Regards
Please Log in or Create an account to join the conversation.
Thank you.....
How can I create _Exception?
Thank you
Please Log in or Create an account to join the conversation.
With the Succeeded property, it is similar to those before. It is also derived from something else. In this case, it is derived from the (read-write) property Exception. Succeeded is false when Exception is not null, and it is true when Exception is null.
So, if you are not interested in details of the error (exception), you can just "transmit" the boolean Succeeded value. Then, on the receiving end, when Succeeded was true, simply keep the Exception at null. When Succeeded was false, create instance of any Exception or some class derived from it, and assign it to the Exception. That should do it. You can even set its exception text to something to indicate "Due to transfer limitations, the true type of the exception, its message and other details are unknown.".
Best regards
Please Log in or Create an account to join the conversation.
before my problem was that Hasgood,HasBad are readonly so your support explain me that I need to transfer statuscode bytes to have exact Hasgood,Hasbad values.
Now I have transferred eventargs.succeed but I can change it in remote computer because it is readonly.
so in remote computer how can change succeed value?
Please Log in or Create an account to join the conversation.
Regards
Please Log in or Create an account to join the conversation.
Missing only 1 data that is readonly .....
Succeeded
How can I change this data?
I need if data is available or not....
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-Classic in COM
- Reading, Writing, Subscriptions, Property Access
- convert eventargs in delphi