Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

len()

Purpose

Find the length of a string or array

Description

Returns the number of characters in a text string or the number of items in an array

Syntax

stringlen = len( string )

arraylen = len( array )

Arguments

string string to find the lenght of

array array to find the length of

stringlen number of characters in the specified string

arraylen number of entries in the specified array

Example

// Show the length of a string
s = "Hello World"
printAt( 0, 0, "Length of ", s, " is ", len( s ) )

// Show the length of an array
a = []
a[9] = s
printAt( 0, 1, "Length of a is ", len( a ) )
update()
sleep( 3 )

Associated Commands

cursor(), drawText(), ink(), print(), printAt(), stringHash(), textSize(), tHeight(), tWidth()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.