openPDC Synchrophasor Help
GetValidLabel Method (value)
NamespacesTVA.PhasorProtocolsCommonGetValidLabel(String)
Removes duplicate white space, control characters and null from a string.
Declaration Syntax
C#Visual BasicVisual C++
public static string GetValidLabel(
	this string value
)
<ExtensionAttribute> _
Public Shared Function GetValidLabel ( _
	value As String _
) As String
[ExtensionAttribute]
public:
static String^ GetValidLabel(
	String^ value
)
Parameters
value (String)
Source String to validate.
Return Value
value with duplicate white space, control characters and nulls removed.
Remarks
Strings reported from field devices can be full of inconsistencies, this function "cleans-up" the strings for visualization.

Assembly: TVA.PhasorProtocols (Module: TVA.PhasorProtocols) Version: 1.4.192.0