table rename

Prev Next

Function Names

table rename

Description

This function renames the table. The contents remain untouched.

Call as: procedure

Restrictions

Indirect parameter passing is disabled

Parameter count

2

Parameters

No.TypeDescription
1.
input
string Name of existing table

2.
input
string New table name

Examples

       table initialize( t, {{ Name, Street }, { Miller, '3. Hill St.' }} );
       table rename( t, u );

       echo("Original table renamed:");
       table list( u );

Output

Original table renamed:
    0 : Name   | Street     
    1 : Miller | 3. Hill St.

Try it yourself: Open LIB_Function_table_rename.b4p in B4P_Examples.zip. Decompress before use.

See also

table copy table
table delete