next up previous contents index
Next: Db_set_zone Up: The O_heap_1 commands Previous: Db_table_residue

Db_set_data

 

Db_set_data [datablock] [range] [value]

Set consecutive locations in data block to a value. This command is often used to change values of constants in the database, if no user interface is provided in the program. For example, to change the sensitivity of dials, we can poke a different multiplier value into .dial_real:

  O > db_set_data 
 Heap> Full name of data block:  .dial_real
 Heap> It is of type R and has 1 entries
 Heap> Start and end entries [1 1 ]:  1 1
 Heap> Changing entries 1 to 1 of data block .dial_real
 Heap> Enter value (must be type R):  0.2
  O >