Function ValidAngStr returns TRUE if the specified value can be converted into a numeric angle value. If TRUE, the value (in decimal degrees) of the string is returned.
FUNCTION ValidAngStr(
str : STRING;
VAR value : REAL): BOOLEAN;def vs.ValidAngStr(str):
return (BOOLEAN, value)| Name | Type | Description |
|---|---|---|
| str | STRING | String value to be checked for angle validity. |
| value | REAL | Returns numeric angle value converted from input string. |
PROCEDURE Example;
VAR
str :STRING;
value :REAL;
BEGIN
str := StrDialog('Enter the angle:', 'N10E');
IF ValidAngStr(str, value) THEN Message(value);
END;
RUN(Example);Availability: from All Versions