05.05.2014 Views

csmstr - Omega Engineering

csmstr - Omega Engineering

csmstr - Omega Engineering

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.

FIND(STRING,CHAR,SKIP)<br />

CRIMSON USER MANUAL - MODULAR CONTROLLER<br />

FIND(STRING,CHAR,SKIP)<br />

ARGUMENT TYPE DESCRIPTION<br />

string cstring The string to be processed.<br />

char int The character to be found.<br />

skip int The number of times the character is skipped.<br />

DESCRIPTION<br />

Returns the position of char in string, taking into account the number of skip occurrences<br />

specified. The first position counted is 0. Returns -1 if char is not found. In the example<br />

below, the position of “:”, skipping the first occurrence is 7.<br />

FUNCTION TYPE<br />

This function is passive.<br />

RETURN TYPE<br />

int<br />

EXAMPLE<br />

Position := Find("one:two:three",':',1)<br />

PAGE 326<br />

http://www.redlion.net/controller

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

Saved successfully!

Ooh no, something went wrong!