09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

StrLen Gets the string length<br />

Example<br />

StrLen (String Length) is used to find the current length of a string.<br />

VAR num len;<br />

len := StrLen("Robotics");<br />

The variable len is given the value 8.<br />

Return value Data type: num<br />

Arguments<br />

Syntax<br />

The number of characters in the string (>=0).<br />

StrLen (Str)<br />

Str (String) Data type: string<br />

The string in which the number of characters is to be counted.<br />

StrLen’(’<br />

[ Str ’:=’ ] <br />

’)’<br />

A function with a return value of the data type num.<br />

Related information<br />

Described in:<br />

String functions <strong>RAPID</strong> Summary - String Functions<br />

Definition of string Data Types - string<br />

String values <strong>Basic</strong> <strong>Characteristics</strong> -<br />

<strong>Basic</strong> Elements<br />

<strong>RAPID</strong> Reference Manual 9-StrLen-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!