- Posts: 152
- Thank you received: 0
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.
How to use UnsubscribeMultipleMonitoredItems in Delphi?
I don t understand how to convert subscriptionid (integer) to handlearray to use It.
Br Alessandro
Please Log in or Create an account to join the conversation.
SubscribeMultipleMonitoredItems returns an array of handles (integers), not a TStringList. And, the array of handles returned from SubscribeMultipleMonitoredItems should be directly usable as the input array to UnsubscribeMultipleMonitoredItems, precisely as it is shown in the example referenced before. If that somehow does not work in Delphi, let me know.
If you only want to unsubscribe *some* tags from the whole set made by SubscribeMultipleMonitoredItems: The positions (indexes) of the handles in the returned array are the same as those in the input arguments array. So, the handles for argument 0 is at index 0, handle for argument 1 is at index 1, etc. So, you can pick the ones you want, create a new array of integer handles, and pass that to UnsubscribeMultipleMonitoredItems .
Please Log in or Create an account to join the conversation.
I do subscribemultiplemonitoreditems and out subscribeid in a tlist. Now i Need unsubscribe some tags. I got my subscribeid list in a tstringlist. How Can unsubscribe some tags from tlist to unsubscribemultimonitoritems?
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.
Can you please be more specific? - I do not quite understand what the issue is. Did you mean this example: opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...tiple%20monitored%20items.html
- and do you want to do the same in Delphi, or is your problem different?
Best regards
Please Log in or Create an account to join the conversation.
I have a Subscriptionid list but i don t understand how to use UnsubscribeMultipleMonitoredItems in delphi. I have seen documentatione example but in that case is simple because you have HandleArray assigned with Subscriptionid.
Br,Alessandro
Please Log in or Create an account to join the conversation.