Nope, nothing seems to work. It's ridiculous, I can do the following:
open to read fName$,1
close file 1
loadLevel(fName$)
and it works fine. However, if I take the "open to read fName$,1" line and put it inside of "loadLevel(fName$)" it will fail (cannot find file). I can even ignore the parameter and specify the raw path myself (which I know exists), but it will still fail if called from inside the function.
I think my compiler might be broken
@David89: Yes I'm using the IDE include instead of the code based one. Shouldn't be a problem, in fact if I don't use INCLUDEs at all I still get the issue. It seems to be with the functions now instead of the includes.
@ApexNOW: Tried your suggestions (in several different guises), but I wasn't doing any type casting to start with unfortunately. It was "int's" all the way!
Definately something strange going on with DBPro, but I can't get my cd to reinstall for another two weeks 'till I get back from university. Doh...
Wrig