[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'sysutils' (#rtl)

SetCurrentDir

Set the current directory of the application.

Declaration

Source position: diskh.inc line 19

function SetCurrentDir(

  const NewDir: String

):Boolean;

Description

SetCurrentDir sets the current working directory of your program to NewDir. It returns True if the function was successfull, False otherwise.

Errors

In case of error, False is returned.

See also

GetCurrentDir

  

Return the current working directory of the application.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.