beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 257

background image

F

UNCTION

R

EFERENCE

F

IND

F

ILE

F

IRST

(

DIR

)

R

EVISION

1

P

AGE

241

F

IND

F

ILE

F

IRST

(

DIR

)

A

RGUMENT

T

YPE

D

ESCRIPTION

dir

cstring

Directory to be used in search.

D

ESCRIPTION

Returns the filename of name of the first file or directory located in the

dir

directory on the

CompactFlash card. Returns an empty string if no files exist or if no card is present. This
function can be used with the

FindFileNext

function to scan all files in a given directory.

F

UNCTION

T

YPE

This function is active.

R

ETURN

T

YPE

cstring

.

E

XAMPLE

Name := FindFileFirst(“/LOGS/LOG1”)