Clear All Data

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "Clear All Data is a Data Command. This command empties the contents of a list, tables and variables within a script. == Example == <pre> ui button("Clea...")

Revision as of 21:11, 15 March 2015

Clear All Data is a Data Command.

This command empties the contents of a list, tables and variables within a script.


Example

ui button("Clear ALL") {
    clear all data
}
ui stat monitor("Var Number:",#number)
ui stat monitor("Var Num:",#num)
ui stat monitor("List Numbr:",$list total(%numbr))
ui stat monitor("Table Row Numbr:",$table total rows(&nmbr))
ui stat monitor("Table Column Numbr:",$table total columns(&nmbr))
set(#number,4,"Global")
set(#num,34,"Global")
add item to list(%numbr,"one","Delete","Global")
set table cell(&nmbr,0,0,"one")


Running the script will provide values for all the lists, tables ad variables listed.

Notice that the clear all data command has been placed in a UI button command. Once the UI button is clicked, all variables, lists, and tables are cleared and the totals are reset to 0.


Clearalldata.gif

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox