PIEE-User

PIConstants - moving from VBA to .Net

Discussion created by PIEE-User on Aug 9, 2010
Latest reply on Aug 11, 2010 by PIEE-User

Hi

 

I'm started to use the SDK with Net so thought I'd read the manual. The PI SDK manual is in VBA not .Net though...A problem happens on examples like this:

 

Dim ptType As PointTypeConstants
        ptType = PIConstants("PointTypeConstants")(Combo1.Text).Value
"PIConstants is a type and cannot be used as an expression"

 

PIConstants is an interface so example code such as the following (from help file) doesn't work

 

Please advise on the ".Net way to do this"

 

Thanks!

Outcomes