table.assign
| Syntax |
table.assign (addr, val)
|
| Params |
addr is an Object Database location. val is any type of object recognized by Frontier and capable of being stored in the Object Database.
|
| Action |
Places the object described or contained in val in the Object Database at location addr.
|
| Returns |
True
|
| Examples |
table.assign(@scratchpad.temp, "Test") » true
table.assign(@scratchpad.temp,42424242)
The contents of scratchpad.temp are replaced and no longer hold the string "Test" from Example 1. |
| Notes |
If there is no object at addr, this verb will create one of the right type to hold val. If addr has any contents, this verb replaces those contents entirely with val, without confirmation, changing the datatype as appropriate. Typically, a call to table.assign can be replaced with a simple assignment statement, as in: scratchpad.temp = "Test" scratchpad.temp = 42424242 However, assignments that would destroy a window-based object (i.e.any Frontier editable type) is disallowed. This means a verb call like this: scratchpad = "Test" will generate an error, since it would destroy a table. table.assign can be used to override this protection and make such assignments, as in the following (which you should not execute): table.assign (@scratchpad, "Test")
|
| See Also |
new
|