ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / System functions
  • Managing the storage card
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
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.
Example
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:
sysCardAvailableYou have the ability to read and write on the storage card.
sysCardReadOnlyYou can only read on the storage card.
sysCardUnavailableYou 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: wd290android.jar
Minimum version required
  • Version 16
Comments
CRIAR DIRETORIO WINDEV MOBILE
CRIAR DIRETORIO USANDO
SysStatusStorageCard
fDirectoryExist
fMakeDir

https://youtu.be/txcH3ajxokc

amarildo
07 Nov. 2018

Last update: 05/26/2022

Send a report | Local help