Converts from neutral format into the format specific for the session locale.

Namespace:  Aras.IOM
Assembly:  IOM (in IOM.dll) Version: 11.0.0.6296

Syntax

C#
public string ConvertFromNeutral(
	string svalue,
	string vtype,
	string datePtrn
)
Visual Basic (Declaration)
Public Function ConvertFromNeutral ( _
	svalue As String, _
	vtype As String, _
	datePtrn As String _
) As String
J#
public String ConvertFromNeutral(
	String svalue,
	String vtype,
	String datePtrn
)
JScript
public function ConvertFromNeutral(
	svalue : String, 
	vtype : String, 
	datePtrn : String
) : String

Parameters

svalue
Type: System..::.String
Locale specific string representation of a value that has to be converted.
vtype
Type: System..::.String
Type of the value; only the following types are considered to be locale specific - 'date' | 'float' | 'decimal'
datePtrn
Type: System..::.String
The parameter is taken into consideration only if vtype='date'. In this case the parameter can have one the following values:
  • short_date
  • long_date
  • short_date_time
  • long_date_time
  • short_time
  • long_time

Return Value

Locale specific string representation of the svalue.

Exceptions

ExceptionCondition
System..::.FormatExceptionsvalue does not contain a valid string representation of the type defined by the vtype

See Also