Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 861 Bytes

File metadata and controls

46 lines (37 loc) · 861 Bytes

ValidAngStr

Description

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)

Parameters

Name Type Description
str STRING String value to be checked for angle validity.
value REAL Returns numeric angle value converted from input string.

Examples

==== VectorScript ====

PROCEDURE Example;
VAR
str :STRING;
value :REAL;
BEGIN
str := StrDialog('Enter the angle:', 'N10E');
IF ValidAngStr(str, value) THEN Message(value);
END;
RUN(Example);

==== Python ====

Version

Availability: from All Versions

Category

  • Utility