DECLARE SUB DQBchDir (NewDir AS STRING)
NewDir - New directory
0 if the operation is successful, otherwise -1
This function changes the current directory to the new specified one; you can also use Windows long directory names.
The main difference between the standard QB statement CHDIR is that this function works also with Windows long filenames, while the first doesn't.