Building_Blocks

= Building Blocks = toc

Building Blocks are small, runnable pieces of code that demonstrate a single statement, function, method, or idea.
 * They must be well-commented.**

For requests and suggestions regarding the Building Blocks, please use the discussion link to the left. Include **[BB]** at the beginning of the subject to flag the discussion as related to the building blocks.

As an example see The Run BASIC Building Blocks

Categories
> include component="pageList" hideInternal="true" tag="BB_Category" limit="100"

How to add a Page for a Keyword

 * There should already be a page available for any keyword, so you usually do not need to create a new one, just edit the existing one.**

How to add a missing Page
Click on the **New Page** link under Actions in the navigation pane to the left.

Building Blocks keyword pages must use the **BuildingBlocksTemplate** page template, to do so, select **BuildingBlocksTemplate** from the **Use a Template** drop down list.

It is permitted to include the FILEDIALOG command, so users can search for files on their disk.
 * Example code must not rely on external files.**

As an example see the CLS command and methods or the INT function

Page Naming Convention
Format: ``BB___{Keyword}`` The page name format is: BB followed by three underscores and finally the keyword. Case insensitive keywords are used all uppercase, case sensitive keywords must match their case used in JB.

Adding a Page to a category
This is done by tagging the page.

For instance, the MAINWIN command has the following tags:


 * = **Tag**  || ||= **Category added**           ||
 * bb_m      || || M of the alphabetical order   ||
 * bb_command || || Command of the type order    ||
 * bb_mainwin || || Mainwin of the purpose order ||

Tags used for the Building Blocks are starting with **bb_**, find all available tags below.

include component="tagCloud"