ALERT() replacement.

Post Reply
HunterEC
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

ALERT() replacement.

Post by HunterEC »

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.
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 3 times
Contact:

Re: ALERT() replacement.

Post by Enrico Maria Giordano »

Have a look at Msg*() functions family.

EMG
User avatar
Antonio Linares
Site Admin
Posts: 42508
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 30 times
Been thanked: 72 times
Contact:

Post by Antonio Linares »

Gustavo,

FiveWin also provides an Alert() function:

function Alert( cMsg, aOptions, cTitle, nDefault, xIcon ) --> nOption

A working sample:

Code: Select all | Expand

#include "FiveWin.ch"

function Main()

   local nOption

   nOption = Alert( "take an option",;
                    { "&One", "&Two", "T&hree" },;
                    "Please, select" )

   MsgInfo( nOption )

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
HunterEC
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Post by HunterEC »

Thank you Antonio & Enrico.
Post Reply