FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper ALERT() replacement.
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
ALERT() replacement.
Posted: Tue May 27, 2008 07:42 AM

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.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: ALERT() replacement.
Posted: Tue May 27, 2008 07:53 AM

Have a look at Msg*() functions family.

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ALERT() replacement.
Posted: Tue May 27, 2008 08:38 AM
Gustavo,

FiveWin also provides an Alert() function:

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

A working sample:
#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
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
ALERT() replacement.
Posted: Tue May 27, 2008 08:54 AM

Thank you Antonio & Enrico.

Continue the discussion