Рейтинг:  0 / 5

Звезда не активнаЗвезда не активнаЗвезда не активнаЗвезда не активнаЗвезда не активна
 

DirChange()

 

Changes the directory

 

Syntax

 

DirChange( <cDirectory> ) --> nError

 

Argument(s)

 

<cDirectory> The name of the directory you want do change into.

 

Returns

 

<nError> 0 if directory was successfully changed, otherwise the number of the last error.

 

Description

 

This function attempt to change the current directory to the one specified in <cDirectory>. If this function fails, it will return the last OS error code number. See FError() function for the description of the error.

 

Example(s)

 

IF DirChange( "\temp" ) == 0
   ? "Change to diretory was successfull"
ENDIF

 

Status

 

Ready

 

Compliance

 

This function is CA-Cl*pper 5.3 compliant

 

Platform(s)

 

This is available on all platforms

 

File(s)

 

Library is core

 

See also

MakeDir(), DirRemove(), IsDisk(), DiskChange(), DiskName(), FError()