Hi All,
I am trying to creating a routine which gets the user input in DD/DM/DMS. All I want is to check the typo error which can be made by the user.
What am I approaching here is to check if the user has choosen the DD as the input then the edit_box must contain a real value with the degree symbol. Same lies for DM and DMS which must be containing the Minutes and Seconds symbol respectively.
I have already tried angtof function. Here is what i experimented with it..
(angtof "23°30'25\"" 0) --> 0.410274 ; returned value
(angtof "23°30'25\"" 1) --> 0.410274 ; returned value
Dont know why the supplied units doesnt give any error in the first expression, it should give an error when i pass the unit as 0 and string value in DMS.
Please guide me how can i do it.
Thanks and Regards