[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.axapta.programming

Prevent Info and printer Messages

Raj

3/2/2006 6:25:00 AM

Hi,
I need help regarding Info messages. I dont want to display the Info
and printer messages , is there any to do that?

I want to display only the error messages.
Do any one have code to do that?
Thanks in advance.

Regards,

RR
1 Answer

Max Belugin

3/2/2006 6:47:00 AM

0

> I want to display only the error messages.
> Do any one have code to do that?
> Thanks in advance.

Try to modify the "add" method of the class "Info" and simply return if
the message is not error

Exception add(
Exception _exception,
str _txt,
str _helpUrl = '',
SysInfoAction _sysInfoAction = null,
boolean buildprefix = true)
{
SysInfologLevel infologLevel = this.infologLevel();
int numOfLines,i;
;
// Ingnore user settings and make desired level "Error"
infologLevel = SysInfologLevel::Error

switch (infologLevel)
{
case SysInfologLevel::None:
return _exception;
case SysInfologLevel::Warning:
if (_exception == Exception::Info)
return _exception;
break;
case SysInfologLevel::Error:
if (_exception == Exception::Info || _exception ==
Exception::Warning)
return _exception;
}


--
http://axcoder.bl...
written in Opera mail: http://www.opera...