MessageRequester()

Just starting out? Need help? Post your questions and find answers here.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

MessageRequester()

Post by Kale »

This code runs even though 'Flags' is not defined!

Code: Select all

MessageRequester("Bug?", "This code runs even though 'Flags' is not defined!", Flags)
--Kale

Image
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Hum, what do you mean by Flags is not defined?

Every PB Variable get's defined if it is used somehwere. If you don't
assign a type to it, it will be LONG.

So here you just call MessageRequester() with 0 as Flags.

Timo
quidquid Latine dictum sit altum videtur
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

aha! yes of coarse, i was expecting it needed to be defined first, i didn't realise it would declare the variable in the command itself.
--Kale

Image
Post Reply