Page 179 of 346 Start Back Next End ZBasic System Library 167 ZBasic Microcontrollers Len Type Function returning Integer Invocation Len(str) Parameter Method Type Description str ByVal String The string of which the length is to be determined. Discussion This function returns the length of the given string, in bytes. Note that the length may be zero. Example Dim s as String Dim i as Integer s = "Hello, world!" i = Len(s) ' the result will be 13