BARCOUNT()
From Recital Documentation Wiki
Revision as of 10:35, 24 March 2009 by Yvonnemilne (Talk | contribs)
Class
Menus
Purpose
Function to return the number of bars in a pop-up Xbase style menu
Syntax
BARCOUNT([<expC>])
See Also
ACTIVATE POPUP, BAR(), BARPROMPT(), DEFINE BAR, DEFINE MENU, DEFINE POPUP, MENU(), MENUITEM(), ON BAR, ON EXIT BAR, ON EXIT MENU, ON EXIT POPUP, ON POPUP, ON SELECTION BAR, ON SELECTION MENU, ON SELECTION POPUP, PAD(), POPUP(), PROMPT(), SET COMPATIBLE
Description
The BARCOUNT() function returns the number of defined bars in a pop-up Xbase style menu. These types of menus are created with the DEFINE POPUP and DEFINE BAR commands. The BARCOUNT() function returns the number of bars in the currently active pop-up. The optional <expC> allows the BARCOUNT() function to operate on the named defined pop-up.
Example
define menu main message "Welcome to the Main Menu" define pad view; prompt "View"; at 0,7; message str(barcount() + " ways to view records.",3) define pad custom; prompt "Customize"; at 0,18; message str(barcount() + " ways to customize the work surface.",3)
Products
Recital Mirage Server, Recital Terminal Developer