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...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Prevent Info and printer Messages
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password