ALERT() replacement.
ALERT() replacement.
What function is the ALERT() replacement, if any ? I need a function that displays a dialog to the user, centered in the current window, displaying the options supplied and returns which one the user picked. Thank you.
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: ALERT() replacement.
Have a look at Msg*() functions family.
EMG
EMG
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Gustavo,
FiveWin also provides an Alert() function:
function Alert( cMsg, aOptions, cTitle, nDefault, xIcon ) --> nOption
A working sample:
FiveWin also provides an Alert() function:
function Alert( cMsg, aOptions, cTitle, nDefault, xIcon ) --> nOption
A working sample:
Code: Select all
#include "FiveWin.ch"
function Main()
local nOption
nOption = Alert( "take an option",;
{ "&One", "&Two", "T&hree" },;
"Please, select" )
MsgInfo( nOption )
return nil