-
Re: Empty String in AF Enumeration Set
vkaufmannNov 13, 2018 7:01 PM (in response to Suganya_Ganesan)
4 of 4 people found this helpfulAF Enumerations are backed by Enums in .NET where NULL sets are disallowed. Can you explain what you are trying to accomplish that requires null enumeration states?
c# - How to set enum to null - Stack Overflow
--Vince
-
Re: Empty String in AF Enumeration Set
Suganya_Ganesan Nov 14, 2018 8:28 PM (in response to vkaufmann)Hi Vince,
I have Digital PI Point which collects string data from OPC Server. One of the string value expected is empty string ("").
I have created a digital set with a state name as empty string and I could see that the PI Point is reading empty string from source and storing it as a digital value.
Now I have mapped that PI Point to an AF Attribute and created an AF Enumeration set similar to that of PI Digital set with an empty string as Name for one of the value. At that time, I get an error as "Enumeration name cannot be empty".
Regards,
Suganya
-
Re: Empty String in AF Enumeration Set
Dan FishmanNov 14, 2018 10:32 PM (in response to Suganya_Ganesan)
1 of 1 people found this helpfulCould you get by with a value of "null" or "empty" in the AF Enumeration Value.
-
Re: Empty String in AF Enumeration Set
Suganya_Ganesan Nov 15, 2018 12:56 AM (in response to Dan Fishman)1 of 1 people found this helpfulYes. We are using "NULL".
-
-
-