beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 335

background image

F

UNCTION

R

EFERENCE

R

ENAME

F

ILE

(

HANDLE

,

NAME

)

R

EVISION

1

P

AGE

319

R

ENAME

F

ILE

(

HANDLE

,

NAME

)

A

RGUMENT

T

YPE

D

ESCRIPTION

handle

int

File handle.

name

cstring

New file name.

D

ESCRIPTION

Returns a non-zero value upon a successful rename file operation. The file handle is the
returned value of the

Openfile()

function. After the rename operation, the file stays open

and should be closed if no further operations are required. The file name is maximum 8
characters long, excluding the extension, which is 3 characters long maximum.

F

UNCTION

T

YPE

This function is active.

R

ETURN

T

YPE

int.

E

XAMPLE

Result := RenameFile(File , “NewName.txt”)