Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
web:storage [2018/08/02 21:00]
agcyphers [Events]
web:storage [2018/08/02 21:08]
agcyphers [Properties]
Line 14: Line 14:
 ==== Methods ==== ==== Methods ====
 ^ Definition ​     ^ Description ​      ^ ^ Definition ​     ^ Description ​      ^
-BindTotheControl ​as [[http://​developer.xojo.com/​webcontrol|WebControl]],​ theKey as [[http://​developer.xojo.com/​string|String]],​ isSession as [[http://​developer.xojo.com/​boolean|Boolean]] = False ) | Binds an event watcher to theControl. ​ When that control'​s value changes, the values is stored. | +Count(as Integer ​Returns the amount of Key/Value pairs. | 
-GetDataKey as [[http://​developer.xojo.com/​string|String]],​ IsSession as [[http://​developer.xojo.com/​boolean|Boolean]] = False ) | Notifies ​the browser that you wish to receive the current data stored for Key.  This value will be made available in the StorageValue event. | +KeykeyIndex ​as Integer ​) | Returns ​the key at the specified index. | 
-| Remove( Key as [[http://​developer.xojo.com/​string|String]], IsSession as [[http://​developer.xojo.com/​boolean|Boolean]] = False ) | Allows the developer to clear a value from the browser'​s storage. | +| Remove( Key as [[http://​developer.xojo.com/​string|String]] ) | Allows the developer to clear a value from the browser'​s storage. | 
-| RemoveAll( ​IsSession as [[http://​developer.xojo.com/​boolean|Boolean]] = False ) | Clears all stored data in browser storage for the current domain. | +| RemoveAll() | Clears all stored data in browser storage for the current domain. | 
-SetData( Key as [[http://​developer.xojo.com/​string|String]], Value as [[http://​developer.xojo.com/​string|String]]isSession ​as [[http://​developer.xojo.com/​boolean|Boolean]] ​False ) | Sets data value in the browser. |+Value( Key as String, ​Assigns ​Value as String ) | Sets a value in the browser. | 
 +| Value( Key as String, ​DefaultValue ​as String ​"" ​) | Returns ​a value, if the key doesn'​t exist then DefaultValue is returned. |
  
 ==== Properties ==== ==== Properties ====
 ^ Name      ^ Type       ^ Default Value       ^ Description ​      ^ ^ Name      ^ Type       ^ Default Value       ^ Description ​      ^
 +| StorageType | StorageTypes | Local | Determines where in the browser'​s database values are stored and are accessible. |
 | Supported | [[http://​developer.xojo.com/​boolean|Boolean]] | False (Read-Only) | Returns whether the user's browser supports this functionality. | | Supported | [[http://​developer.xojo.com/​boolean|Boolean]] | False (Read-Only) | Returns whether the user's browser supports this functionality. |
  
 ==== Examples ==== ==== Examples ====
 There are currently no examples for this class. There are currently no examples for this class.
  • Last modified: 12 months ago
  • by agcyphers