VS:ValidAngStr: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision) |
(No difference)
|
Latest revision as of 14:39, 12 August 2013
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
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
str STRING String value to be checked for angle validity. value REAL Returns numeric angle value converted from input string.
Return Value
Returns TRUE if the specified string can be converted into a angle value.
Example
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