Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>change the current directory.</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Change the current directory.
------------------------------------------------------------------------------

 Syntax

        GT_ChDir(<cDir>,[@<nError>]) --> lChanged

 Arguments:

      <cDir> is the path of the directory.

      <nError> is an optional parameter that must be passed by reference.
      If the directory change fails the DOS error code will be placed in
      this variable.

 Returns:

      If the change was made, GT_ChDir() returns true (.T.), if not it
      returns false (.F.).

 Description:

      GT_ChDir() can be used to change the current directory.

 Examples:

      // Change directory.

      nError := 0
      if !GT_ChDir("Knight",@nError)
         ? "Error =",nError
      endif

 Source: CHDIR.C

 Author:  Dave Pearson

See Also: GT_MKDIR() GT_RMDIR()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson