Utility method to retrieve the index from the string returned in the Map for SELECT items. The string is of the form "index: value". This method parses it and returns the index as an integer. If the input is ill-formatted, returns -2. -1 is a valid value, indicating nothing was selected.

Namespace: Jaxcent.Web
Assembly: Jaxcent (in Jaxcent.dll) Version: 2.3.1.0 (2.3.1.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static int GetSelectedIndex(
	Object valueFromMap
)
Public Shared Function GetSelectedIndex ( _
	valueFromMap As Object _
) As Integer
public:
static int GetSelectedIndex(
	Object^ valueFromMap
)

Parameters

valueFromMap
Object

See Also