Difference between revisions of "PRMBAR()"
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Function to return the prompt text from a popup bar | Function to return the prompt text from a popup bar | ||
Line 16: | Line 12: | ||
==Description== | ==Description== | ||
− | The PRMBAR() function returns the prompt text from a specified bar of a specified popup. The popup is specified in <expC>. The popup must have been defined, but need not be active. The name of the active popup is returned by the POPUP() function. The bar number is specified in <expN>. The number of the last selected bar is returned by the BAR() function. If special characters such as hot keys '<' and disabled items '' are included in the prompts, these are removed by the PRMBAR() function. When a popup bar is a separator, '-', PRMBAR()returns a null string. | + | The PRMBAR() function returns the prompt text from a specified bar of a specified popup. The popup is specified in <expC>. The popup must have been defined, but need not be active. The name of the active popup is returned by the POPUP() function. The bar number is specified in <expN>. The number of the last selected bar is returned by the BAR() function. If special characters such as hot keys '\<' and disabled items '\' are included in the prompts, these are removed by the PRMBAR() function. When a popup bar is a separator, '\-', PRMBAR() returns a null string. |
Line 36: | Line 32: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Menus]] | [[Category:Menus]] | ||
[[Category:Menus Functions]] | [[Category:Menus Functions]] |
Latest revision as of 14:49, 7 December 2009
Purpose
Function to return the prompt text from a popup bar
Syntax
PRMBAR(<expC>,<expN>)
See Also
ACTIVATE POPUP, BAR(), DEFINE BAR, DEFINE POPUP, DIALOG FIELDS, DIALOG FILES, DIALOG QUERY, DIALOG SCOPE, MENU FIELDS, MENU FILES, MENU QUERY, MENU SCOPE, ON SELECTION POPUP, POPUP(), PROMPT(), SET COMPATIBLE
Description
The PRMBAR() function returns the prompt text from a specified bar of a specified popup. The popup is specified in <expC>. The popup must have been defined, but need not be active. The name of the active popup is returned by the POPUP() function. The bar number is specified in <expN>. The number of the last selected bar is returned by the BAR() function. If special characters such as hot keys '\<' and disabled items '\' are included in the prompts, these are removed by the PRMBAR() function. When a popup bar is a separator, '\-', PRMBAR() returns a null string.
Example
set compatible to foxpro define popup popup_1; from 1,26 define bar 1 of popup_1; prompt "Red" define bar 2 of popup_1; prompt "Yellow" define bar 3 of popup_1; prompt "Blue" on selection popup popup_1 dialog box "You chose " + prmbar("POPUP_1",bar()) activate popup popup_1
Products
Recital