PureBasic Forum
http://forums.purebasic.com/english/

Warning Level
http://forums.purebasic.com/english/viewtopic.php?f=18&t=74847
Page 1 of 1

Author:  Josh [ Thu Mar 12, 2020 10:56 am ]
Post subject:  Warning Level

In the Preferences and Compiler Options I can make settings for the 'Warning Level':
  • File > Preferences > Debugger > Choose Warning Level
  • Compiler > Compiler Options > Compile/Run > Use Warning mode

Does this have anything to do with the warning I get with the command CreateGadgetList(0)? I can change all the above settings, but nothing changes.

What do I really set with this?

Author:  Derren [ Thu Mar 12, 2020 11:06 am ]
Post subject:  Re: Warning Level

I tried with this code

Code:
LoadImage(0, "c:\bild.bmp") ;this file doesn't exist, obviously


This gets either no marking at all (ignore warnings)
Gets a blue-backed "!" next to the line number (blue is dependent on the color settings, it may be yellow or whatever depending on your color scheme)
Gets an error blob next to the line number and the programm halts with an error warning in the "status box" (lower part of the IDE).

CreateGadgetList() is a depracated function and should be removed. This is a different type of warning.

Author:  Josh [ Thu Mar 12, 2020 11:46 am ]
Post subject:  Re: Warning Level

All right, I was thinking too complicated :D

I used CreateGadgetList() because it is the only function I could think of that opens this warning window.

Thanks

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/