beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 237

background image

F

UNCTION

R

EFERENCE

C

REATE

D

IRECTORY

(

NAME

)

R

EVISION

1

P

AGE

221

C

REATE

D

IRECTORY

(

NAME

)

A

RGUMENT

T

YPE

D

ESCRIPTION

name

cstring

The directory to be created.

D

ESCRIPTION

Creates a new directory on the CompactFlash card. Note that the filing system used on the
card does not support long filenames, and that if backslashes are included in the pathname to
separate path elements, they must be doubled-up per Fieldbus Gateway Manager’s rules for
string constants as described in the chapter on Writing Expressions. To avoid this
complication, forward slashes can be used in place of backslashes without the need for such
doubling. The function returns a value of one if it succeeds, and a value of zero if it fails.

F

UNCTION

T

YPE

This function is active.

R

ETURN

T

YPE

int

.

E

XAMPLE

Result := CreateDirectory(“/LOGS/LOG1”)