FAT32_ChangeDir

General discussion on mikroBasic PRO for PIC32.
Post Reply
Author
Message
benett
Posts: 31
Joined: 27 Jan 2013 23:23
Location: Sweden

FAT32_ChangeDir

#1 Post by benett » 08 Sep 2014 22:45

Hi

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?
FAT32_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
Best regards
Stefan

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: FAT32_ChangeDir

#2 Post by filip » 17 Sep 2014 12:11

Hi,

I apologize for this issue.

Could you please tell me which compiler version and MCU are you using ?

Regards,
Filip.

Post Reply

Return to “mikroBasic PRO for PIC32 General”