[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
MsgGet( cTitle, cText, @uVar, cBmpFile )-> <lOk>
------------------------------------------------------------------------------
PARAMETER:
<cTitle> Is the title of the DialogBox
<cText> Is the caption of the Input GET
<uVar> Any variable value passed by REFERENCE!
<cBmpFile> Optional BMP-File to be displayed beside the GET.
RETURNS:
<lOk> is TRUE if user pushed the OK button of the dialog.
DESCRIPTION:
This is a very useful function to quickly display a dialog with a GET
that accepts some user input. The dialog box contains 2 buttons ( OK and
CANCEL ), and you can display a 20/20pixel bitmap on it. The user input
from the GET control is stored in <uVar> provided by reference, if the
dialog was closed with the OK button.
EXAMPLE:
+--------------------------------------------------------------+
| /* Retreive a FileName and open the File */ |
| LOCAL cVar := space(12) |
| |
| LOCAL cVar := space(12) |
| IF( MsgGet("File", "Filename", @cVar,"MyIcon.Bmp") |
| FOPEN( cVar ) |
| ... |
| ENDIF |
+--------------------------------------------------------------+
SOURCE:
SOURCE\FUNCTION\MSGGET.PRG
See Also:
MsgInfo
MsgYesNo
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson