PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Managing the storage card
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Android Widget This function is now available in Android Widget mode.
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.
sysCardUnavailableYou cannot read or write on the storage card.
sysCardReadOnlyYou can only read 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, ...
Components
Android wd230android.jar
Minimum required version
  • Version 16
Comments
CRIAR DIRETORIO WINDEV MOBILE
CRIAR DIRETORIO USANDO
SysStatusStorageCard
fDirectoryExist
fMakeDir

https://youtu.be/txcH3ajxokc

amarildo
Nov. 07 2018