%CHDIR

%CHDIR


%BIND Index Level %CHMOD
Syntax variable = %CHDIR( string )
Category BASIC
Type C Function
Description changes the current directory to the directory specified by "string".

A "-1" (minus one) returned from this function indicates an error condition.
Options
See Also c function CFUNCTION cd
Example if %chdir('/usr/pick') = -1 then crt 'errno=':system(0)
If an error condition is encountered in this example, the error message is displayed from function "system(0)".
Warnings
Compatibility D3/Unix
%BIND Index Level %CHMOD