ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Web-specific functions / Local Storage functions
  • Local storage persistent or not
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
LocalStorageGet (Function)
In french: StockageLocalRécupère
Retrieves a value from the local storage.
Example
LocalStorageGet(SAI_SaisieNom)
Syntax
<Result> = LocalStorageGet(<Element name> [, <Persistent>])
<Result>: Character string
Retrieved value.
Note: If the value of a field is retrieved, the field is automatically assigned with the retrieved value.
<Element name>: Character string
Name of the element whose value is to be retrieved: value name or field name.
<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

With persistent local storage, stored values can be shared by all browser windows and tabs on a given machine: they can therefore be retrieved after closing and reopening the browser, or in another browser window.
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: 03/27/2025

Send a report | Local help