Okapi .NET Library

Routines.ConvertToValue Method 

 [This is preliminary documentation and subject to change.]

Converts the text representation of a given value an integer. The text can be "DDD", "\DDD", "#HHH", "\xHHH", or #xHHH". Octal format ("\OOO") is not supported.

[Visual Basic]
Shared Public Function ConvertToValue( _ 
   ByVal p_sText As String, _ 
   ByRef p_nValue As Integer _ 
) As Boolean
[C#]
public static bool ConvertToValue(
   string p_sText,
   out int p_nValue
);
[C++]
public: static bool ConvertToValue(
   String* p_sText,
   * int p_nValue
);
[JScript]
public static function ConvertToValue(
   String p_sText,
   int p_nValue
): bool;

Parameters

p_sText
Text representation of the value to convert.
p_nValue
Resulting value.

Return Value

True if the conversion succeed, false if an error occurs.

See Also

Routines Class | Okapi.Library.Base Namespace