ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Web-specific functions / Local Storage functions
  • Local storage persistent or not
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
LocalStorageValueName (Function)
In french: StockageLocalNomValeur
Returns the name of a value for the local storage.
Example
FOR i = 1 TO LocalStorageOccurrence()
Trace(LocalStorageGet(LocalStorageValueName(i)))
END
Syntax
<Result> = LocalStorageValueName(<Index> [, <Persistent>])
<Result>: Character string
Name of the value in the local storage that matches the specified index.
<Index>: Integer
Index of the value whose name should be retrieved. The index of the first value is set to 1. The index is determined by the order in which values are added to the local storage.
<Persistent>: Optional boolean
  • True to work on the persistent local storage (default value),
  • False to work on the storage local to a browser window.
Remarks

Local storage persistent or not

During a persistent local storage, the stored values can be shared by all the windows and tabs of the same browser on a computer: therefore, they can be retrieved once the browser was closed then reopened or in another window of the browser.
During a non-persistent local storage, the stored values are specific to a window (or to a tab) of the browser. in this case, the values will be lost when the browser window (or tab) is closed. On the contrary, these values can be read by the browser windows opened from the window where the values have been stored.
Component: WDJS.DLL
Minimum version required
  • Version 16
Comments
Click [Add] to post a comment

Last update: 04/11/2023

Send a report | Local help