Code: Select all
FAT32_ChangeDir("\\")
- 1 - Gives this error message "complex type" to "simple type"
Can not understand why.
2 - What means with the red text in helpfile?
Best regardsFAT32_ChangeDir
Prototype sub function FAT32_ChangeDir (dim dname as ^char) as int8
Returns
- 0 - directory creation was successful.
-1 - there was an error during sub function call (not enough space, directory name already exists, read/write error, etc.).
Description This routine is used to change current directory to dname.
Parameters:
dname: desired name of a directory we want to enter. Parent directory can be accessed with "..", while root directory can be accessed with "\\" irectly from anywhere in file system.
Requires The storage device needs to be initialized. See FAT32_Init.
Example ' enter DIR_A directory
if (0 = FAT32_ChangeDir("DIR_A")) then
...
end if
' go to parent directory
if (0 = FAT32_ChangeDir("..")) then
...
end
' go to root directory
if (0 = FAT32_ChangeDir("\\")) then
...
end
Stefan