Examples: CommandBar_Create()


The following example uses the CommandBar_Create() function to add the toolbars for the Real Estate Sales Manager sample application. Notice how the sequence and row parameters are used as the four toolbars are added. The sequence values start at 1 and increment for each additional toolbar. The first three toolbars appear on the first row, so the row parameter is 1. The last toolbar is placed on the second row, so its row value is 2.

local integer result;

{View items}
result = CommandBar_Create(Command_GetTag(command CL_View of form 'Main Menu'),1, 1);

{Edit items}
result = CommandBar_Create(Command_GetTag(command cmdListEdit), 2,1);

{Report items}
result = CommandBar_Create(Command_GetTag(command CL_Reports of form 'Main Menu'),3,1);

{Export items}
result = CommandBar_Create(Command_GetTag(command CL_Export of form 'Main Menu'), 4, 2);

Documentation Feedback