|
|
|
|
- Managing the storage card
SysStatusStorageCard (Function) In french: SysEtatCarteStockage Returns the availability status of the storage card on the device (primary external storage zone). This function must be used before the read/write operations performed on the storage card to make sure that this one is available.
nStatus is int nStatus = SysStatusStorageCard() IF nStatus = sysCardAvailable THEN sDir is string sDir = SysDirStorageCard() // Create a file on the storage card fCreate(CompleteDir(sDir) + "myFile.txt") END
Syntax
<Result> = SysStatusStorageCard()
<Result>: Integer constant Current status of the storage card on the device: | | sysCardAvailable | You have the ability to read and write on the storage card. | sysCardReadOnly | You can only read on the storage card. | sysCardUnavailable | You cannot read or write on the storage card. |
Remarks Managing the storage card - The directory of the external storage card on the device is returned by SysDirStorageCard.
- The directory of the external storage card on the device can be inaccessible in read mode and/or in write mode for the following reasons:
- the device is connected to the PC,
- the storage card was removed, hardware problem, ...
Component: wd270android.jar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|