Convert svalue that is a string representation of value of type vtype into the neutral format. It is assumed
that svalue has a format that is a valid format for the session locale.
Namespace:
Aras.IOM
Assembly:
IOM (in IOM.dll) Version: 11.0.0.6296
Syntax
C# |
---|
public string ConvertToNeutral(
string svalue,
string vtype,
string datePtrn
) |
Visual Basic (Declaration) |
---|
Public Function ConvertToNeutral ( _
svalue As String, _
vtype As String, _
datePtrn As String _
) As String |
J# |
---|
public String ConvertToNeutral(
String svalue,
String vtype,
String datePtrn
) |
JScript |
---|
public function ConvertToNeutral(
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 user can specify the exact format
that is used in the string representation of a date in svalue. In case vtype='date' but the parameter is not specified
or passed as null or empty string then an attempt is made to parse the svalue assuming that it has a valid format
for the session locale.
Return Value
Remarks
Exceptions
Exception | Condition |
---|
System..::.FormatException | svalue does not contain a valid string representation of the type defined by the vtype |
See Also