SETLEN Assign length of specified string to a variable |
Top Previous Next |
This script command obtains the length of [ string ] and saves the result in [ variable ].
Consider the following example.
;; assign a variable to a string SET string = "this is a string" ;; get the length of the string SETLEN len = string ;; len will be equal to 16
Related command(s): SET, SETEXTRACT, SETRIGHT, SETLEFT, SETMID, SETSUBSTR
|