1.

Explain SaveData, LoadData and ClearData functions.

Answer»
  • The SaveData function saves a collection under a name for later use.
  • The LoadData function reloads a collection that was previously saved with the SaveData function. This function cannot be used to LOAD a collection from another source.
  • ClearData clears the storage associated with a given name, or all storage linked with the application if no name is provided.

Syntax for SaveData, LoadData and ClearData functions:

SaveData ( Collection, Name )

LoadData ( Collection, Name [, IgnoreNonexistentFile ])

Note: 
The collection is a MUST. To be stored or loaded, a collection must be made.

Name - This is required. The storage's name. To store and load the same collection of data, the name must be the same. Other programs or users do not have access to the namespace. Any of the following characters must not appear in a name: *".?:\<>|/.

IgnoreNonexistent Optional file. If the file doesn't ALREADY exist, a BOOLEAN value indicates what to do. To return an error, use false (the default), and to SILENCE the error, use true.

ClearData  ( [Name] )

Name - This is an optional field. SaveData already saved the name of the storage. All storage connected with the app is wiped if the Name is not specified.



Discussion

No Comment Found