Public Function FromString(ByVal value As String) As Boolean
public System.Boolean FromString(System.String value)
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.
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
private void GeoCalcNET_AngularValue_FromString(GeoCalcNET.AngularValue av)
{
av.Format = "DMS";
if(! av.FromString("62.5135"))
{
MessageBox.Show("unable to set value from string");
}
}