Professional OPC
Development Tools

logos

VarType in Delphi

More
20 Feb 2017 16:13 #4969 by support
Replied by support on topic VarType in Delphi
You can test e.g. like this:

VarType(eventArgs.AttributeData.Value) = varBoolean
More info - e.g.:
- docwiki.embarcadero.com/RADStudio/Seattle/en/Variant_Types
- docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/He...vclwin32/Variants_VarType.html

Best regards

Please Log in or Create an account to join the conversation.

More
13 Feb 2017 11:23 #4960 by alr1976
VarType in Delphi was created by alr1976
Hi!

how can I check if data received is Boolean or single in Delphi?

I understand that I need to check eventArgs.AttributeData.ValueType

eventArgs.AttributeData.ValueType = System.Boolean
I have an error...

Thanks Alessandro

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.261 seconds

      

 Recommend this on Google