table append, table append on same row, table append on same field
table append assumes tables already existing. Contents are addeded on the next row.
table append on same row assumes tables already existing. Contents are addeded on the next column at the last row.
table append on same field assumes tables already existing and expects a string in the 2nd function parameter. This string will be appended to the last existing field at the right in the last table row.
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 } } );
// Notice: Tom and Jerry get their own rows for their cat and mouse play
table append ( t1, { { Corinne, River Side Blvd., 987 } } );
table append on same row ( t1, { { Runs a Café, "Tel: +1 202 555 1212" } } ); // Takes additional columns
table append ( t1, { { Matteo, Springs Lane, 964 } } );
table append on same field ( t1, " Suite 3" );
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 | |
6 : Corinne | River Side Blvd. | 987 | Runs a Café | Tel: +1 202 555 1212
7 : Matteo | Springs Lane | 964 Suite 3 | |