This function is undocumented in the original VFP9SP2 Help File.
Returns the text of a menu title.
PADPROMPT(cMenuTitleName [, cMenuBarName]) |
Parameters
- cMenuTitleName
-
Specifies the menu title (pad) name or internal system menu title name.
- cMenuBarName
-
Specifies the name of the menu bar containing the menu title or internal system menu bar name. When cMenuBarName is omitted the currenctly active menu bar is used as the second parameter. When no menu bar is active and cMenuBarName is omitted an error is generated.
Return Value
Character.
Remarks
Menu bars are created with DEFINE MENU, which creates the menu bar, and DEFINE PAD, which creates the menu titles in the menu bar.
PADPROMPT( ) also works with the Visual FoxPro menu system. A menu bar doesn't have to be active for PADPROMPT( ) to return the text for a menu title.
If a menu title was created using the backslash and less-than characters (\<) to create an access key, or a backslash (\) to disable the menu title,
PADPROMPT( ) returns only the text of the menu title; it doesn't include the special characters.
Example
Copy Code |
|
|---|---|
? "System menu titles: "
FOR lnI = 1 TO CNTPAD("_msysmenu")
?? PADPROMPT( GETPAD( "_msysmenu", lnI), "_msysmenu") + " "
NEXT
|
|
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08