beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 256

background image

F

IND

(

STRING

,

CHAR

,

SKIP

)

V

LINX

F

IELDBUS

G

ATEWAY

M

ANAGER

U

SER

M

ANUAL

P

AGE

240

F

IND

(

STRING

,

CHAR

,

SKIP

)

A

RGUMENT

T

YPE

D

ESCRIPTION

string

cstring

The string to be processed.

char

int

The character to be found.

skip

int

The number of times the character is skipped.

D

ESCRIPTION

Returns the position of

char

in

string

, taking into account the number of

skip

occurrences

specified. The first position counted is 0. Returns -1 if

char

is not found. In the example

below, the position of “:”, skipping the first occurrence is 7.

F

UNCTION

T

YPE

This function is passive.

R

ETURN

T

YPE

int.

E

XAMPLE

Position := Find("one:two:three",':',1)