Int() to Int?

BlitzMax Forums/BlitzMax Beginners Area/Int() to Int?

Stuart Morgan(Posted 2005) [#1]
Im getting confused about a certain compile error and how to fix it...

Unable to convert from 'Int()' to 'Int'

Heres a quick example. I want a type method to return an integer value but I keep getting the compile error.

I'm really not thinking straight at the moment so I thought someone else can help?




PowerPC603(Posted 2005) [#2]
You need to add "()" to your line:

Local temp = getnumber.Retreive()


When a function (or method) returns something, you need to add those.


Stuart Morgan(Posted 2005) [#3]
Cheers. ;-)

See.. told you I wasnt thinking straight, lack of sleep perhaps.