HPlogo System Debug Reference Manual > Chapter 10 System Debug Standard Functions

func strlen

MPE documents

Complete PDF
Table of Contents
Index

E0201 Edition 4 ♥
E0300 Edition 3
E0692 Edition 3

String length. Returns the current size of a string.

Syntax



   strlen (source)

Formal Declaration



   strlen:u32 (source:str)

Parameters


source

Any string literal or variable.

Examples



   $nmdebug > wl strlen("")
   $0

Print the length (number of characters) in the empty string.

   $nmdebug > var company "Hewlett-Packard Co."
   $nmdebug > = strlen(company),d
   #19

Limitations, Restrictions


none




func strins


func strltrim