table initialize
This function creates resp. initializes tables and puts the contents provided in the further function parameters into the table.
Indirect parameter passing is disabled
2
No. | Type | Description |
---|---|---|
1 input |
string | name of new or existing table Table must be existing when using table append... functions. Otherwise, it does not matter. |
2 input |
set | Initial contents Applicable except for table append on same field: |
Alt. 2 input |
string | Initial contents Applicable for table append on same field only: |
Type | Description |
---|---|
boolean | Feedback true if successful. false is returned in case of memory allocation exceptions (very rare cases, if at all). |
include ( Support Library ); // for 'table list'. Will be included automatically when using B4P normally, i.e. not needed.
table initialize( t1,
{ { Name, Street, Nr }, { Alex,Main St., 231 },Tom,Jerry,{ Tillman,South St., 1 }, { Jane,East Coast St.,3200 East Entrance } } );
table list( t1 );
0 : Name | Street | Nr
1 : Alex | Main St. | 231
2 : Tom | |
3 : Jerry | |
4 : Tillman | South St. | 1
5 : Jane | East Coast St. | 3200 East Entrance