Re: error mess ??

new topic     » goto parent     » topic index » view thread      » older message » newer message

Bernie Ryan writes:
> In order to avoid the warning I either have to write
> 2 seperate if statements ( more code ) or I have to
> set without warning on ( which I consider a poor practice )

Warnings can be turned on or off for individual include files,
or even for individual routines. You are not forced to choose
either on or off for the whole program.

In your case you could say:

   without warning
   procedure x()
           if foo() = 42 or foo() != xyz then ...
   end procedure
   with warning

Also, "without warning" at the top of an include file
will only turn off warnings for that one file. When the
end of the include file is reached, the warning
setting is restored to what it originally was.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu