beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 243

background image

F

UNCTION

R

EFERENCE

D

ELETE

D

IRECTORY

(

NAME

)

R

EVISION

1

P

AGE

227

D

ELETE

D

IRECTORY

(

NAME

)

A

RGUMENT

T

YPE

D

ESCRIPTION

name

cstring

The directory to be deleted.

D

ESCRIPTION

Remove a directory, its subdirectories and contents from the CompactFlash. 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

Success := DeleteDirectory(“/logs/custom”)