FromString Method

[VB]

Public Function FromString(ByVal value As String) As Boolean

[C#]

public System.Boolean FromString(System.String value)

 

Description

The FromString method sets the value of this AngularValue according to a string.  The Format property should be set before this method is used to specify the format that is used in the string.  A list of the supported formats is given here.  This method returns a boolean value indicating the success of the operation.

 

Example

[VB]

Private Sub GeoCalcNET_AngularValue_FromString(ByVal av As GeoCalcNET.AngularValue)

av.Format = "DM"

If Not av.FromString("N18.3075") Then

MessageBox.Show("unable to set value from string")

End If

End Sub

 

[C#]

private void GeoCalcNET_AngularValue_FromString(GeoCalcNET.AngularValue av)

{

av.Format = "DMS";

if(! av.FromString("62.5135"))

{

MessageBox.Show("unable to set value from string");

}

}