Alaska Software Inc. - alert()
Username: Password:
AuthorTopic: alert()
Jorge Borlandoalert()
on Sun, 18 Nov 2007 10:43:24 -0300
Hello

i begin work in GUI mode, are there any function that wotk like function 
Alert in GUI mode

i have declared AppSys() procedure
Garry Allen Re: alert()
on Sun, 18 Nov 2007 10:52:55 -0500
According to the Help file, alert() still exists and use a modal dialog 
box...
"The function Alert() works independently of other functions in the 
Xbase++ runtime library and guarantees output on the screen will occur. 
If screen output is required within an error handling routine for 
critical errors, it should be done using Alert()"
Garry
PS Although it seems that many Xbase++ users don't use the VX20 
interface, I do... and I like it very much. If you type "alert(" 
(without quotes), a tooltip will popup showing Alert(cMessage, 
[aOptions],{cColor])->nChoice and if you need more info the Help file is 
only 2 clicks away.

Jorge Borlando wrote:
> Hello
> 
> i begin work in GUI mode, are there any function that wotk like function 
> Alert in GUI mode
> 
> i have declared AppSys() procedure
> 
> 
>
Jorge BorlandoRe: alert()
on Sun, 18 Nov 2007 16:43:24 -0300
hello Gary

i use VX20, i read the help, and no found any tips for to use the alert() 
function in GUI mode that are diferent in CRT mode

i wrote Alert( "Hola Mundo" ) and
this is the error

------------------------------------------------------------------------------
ERROR LOG of "D:\Estudio\estudio.EXE" Date: 11/18/2007 16:35:39

Xbase++ version     : Xbase++ (R) Version 1.90.331
Operating system    : Windows XP 05.01 Build 02600 Service Pack 2
------------------------------------------------------------------------------
oError:args         :
          -> VALTYPE: C VALUE: Hola Mundo
oError:canDefault   : N
oError:canRetry     : N
oError:canSubstitute: Y
oError:cargo        : NIL
oError:description  : Access to method not allowed in this context
oError:filename     :
oError:genCode      :         25
oError:operation    : alert
oError:osCode       :          0
oError:severity     :          2
oError:subCode      :       4402
oError:subSystem    : BASE
oError:thread       :          1
oError:tries        :          0
------------------------------------------------------------------------------
CALLSTACK:
------------------------------------------------------------------------------
Called from MENU1110(7)
Called from (B)CREATEMENU(29)
Called from MENU0000(27)
Called from MAIN(3)


thanks for your help


"Garry Allen" <gallen.dbmc@kingston.net> escribi en el mensaje 
news:4c85e4c1$36f3e78b$c3@news.alaska-software.com...
> According to the Help file, alert() still exists and use a modal dialog 
> box...
> "The function Alert() works independently of other functions in the 
> Xbase++ runtime library and guarantees output on the screen will occur. If 
> screen output is required within an error handling routine for critical 
> errors, it should be done using Alert()"
> Garry
> PS Although it seems that many Xbase++ users don't use the VX20 interface, 
> I do... and I like it very much. If you type "alert(" (without quotes), a 
> tooltip will popup showing Alert(cMessage, [aOptions],{cColor])->nChoice 
> and if you need more info the Help file is only 2 clicks away.
>
> Jorge Borlando wrote:
>> Hello
>>
>> i begin work in GUI mode, are there any function that wotk like function 
>> Alert in GUI mode
>>
>> i have declared AppSys() procedure
>>
>>
Jan Escholt Re: alert()
on Sun, 18 Nov 2007 21:40:20 +0100
Try this: Alert("Hola Mundo", {"OK"})

Jan

Jorge Borlando schrieb:
> hello Gary
> 
> i use VX20, i read the help, and no found any tips for to use the alert() 
> function in GUI mode that are diferent in CRT mode
> 
> i wrote Alert( "Hola Mundo" ) and
> this is the error
> 
> ------------------------------------------------------------------------------
> ERROR LOG of "D:\Estudio\estudio.EXE" Date: 11/18/2007 16:35:39
> 
> Xbase++ version     : Xbase++ (R) Version 1.90.331
> Operating system    : Windows XP 05.01 Build 02600 Service Pack 2
> ------------------------------------------------------------------------------
> oError:args         :
>           -> VALTYPE: C VALUE: Hola Mundo
> oError:canDefault   : N
> oError:canRetry     : N
> oError:canSubstitute: Y
> oError:cargo        : NIL
> oError:description  : Access to method not allowed in this context
> oError:filename     :
> oError:genCode      :         25
> oError:operation    : alert
> oError:osCode       :          0
> oError:severity     :          2
> oError:subCode      :       4402
> oError:subSystem    : BASE
> oError:thread       :          1
> oError:tries        :          0
> ------------------------------------------------------------------------------
> CALLSTACK:
> ------------------------------------------------------------------------------
> Called from MENU1110(7)
> Called from (B)CREATEMENU(29)
> Called from MENU0000(27)
> Called from MAIN(3)
> 
> 
> thanks for your help
> 
> 
> "Garry Allen" <gallen.dbmc@kingston.net> escribió en el mensaje 
> news:4c85e4c1$36f3e78b$c3@news.alaska-software.com...
>> According to the Help file, alert() still exists and use a modal dialog 
>> box...
>> "The function Alert() works independently of other functions in the 
>> Xbase++ runtime library and guarantees output on the screen will occur. If 
>> screen output is required within an error handling routine for critical 
>> errors, it should be done using Alert()"
>> Garry
>> PS Although it seems that many Xbase++ users don't use the VX20 interface, 
>> I do... and I like it very much. If you type "alert(" (without quotes), a 
>> tooltip will popup showing Alert(cMessage, [aOptions],{cColor])->nChoice 
>> and if you need more info the Help file is only 2 clicks away.
>>
>> Jorge Borlando wrote:
>>> Hello
>>>
>>> i begin work in GUI mode, are there any function that wotk like function 
>>> Alert in GUI mode
>>>
>>> i have declared AppSys() procedure
>>>
>>>
>
AUGE_OHRRe: alert()
on Sun, 18 Nov 2007 23:03:19 +0100
hi,

> i begin work in GUI mode, are there any function that wotk like function
> Alert in GUI mode
>
> i have declared AppSys() procedure

you can not use ALERT() in GUI Mode !

use  C:\ALASKA\XPPW32\SOURCE\samples\solution\alertbox\Alertbox.prg instead.

greetings by OHR
Jimmy
Jorge BorlandoRe: alert()
on Sun, 18 Nov 2007 23:52:57 -0300
C:\ALASKA\XPPW32\SOURCE\samples\solution\alertbox\Alertbox.prg
this is the solution !

regards and tank you very much !
Garry Allen Re: alert()
on Wed, 21 Nov 2007 10:42:31 -0500
You are right, of course. The Help file should be read CAREFULLY! 
Although it doesn't mention that it can't be used in GUI mode, there are 
some clues like a reference to SetColor().
Personally, since I'm a TopDown user, I use tdMsg().
Garry

AUGE_OHR wrote:
> hi,
> 
>> i begin work in GUI mode, are there any function that wotk like function
>> Alert in GUI mode
>>
>> i have declared AppSys() procedure
> 
> you can not use ALERT() in GUI Mode !
> 
> use  C:\ALASKA\XPPW32\SOURCE\samples\solution\alertbox\Alertbox.prg instead.
> 
> greetings by OHR
> Jimmy
> 
> 
>