09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

StrMap Maps a string<br />

Example<br />

StrMap (String Mapping) is used to create a copy of a string in which all characters are<br />

translated according to a specified mapping.<br />

VAR string str;<br />

str := StrMap("Robotics","aeiou","AEIOU");<br />

The variable str is given the value "RObOtIcs".<br />

str := StrMap("Robotics",STR_LOWER, STR_UPPER);<br />

The variable str is given the value "ROBOTICS".<br />

Return value Data type: string<br />

Arguments<br />

The string created by translating the characters in the specified string, as specified by<br />

the "from" and "to" strings. Each character, from the specified string, that is found in<br />

the "from" string is replaced by the character at the corresponding position in the "to"<br />

string. Characters for which no mapping is defined are copied unchanged to the resulting<br />

string.<br />

StrMap ( Str FromMap ToMap)<br />

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

The string to translate.<br />

FromMap Data type: string<br />

Index part of mapping.<br />

ToMap Data type: string<br />

Value part of mapping.<br />

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

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

Saved successfully!

Ooh no, something went wrong!