Expression of type 'String' cannot be invoked

BlitzMax Forums/BlitzMax Programming/Expression of type 'String' cannot be invoked

plash(Posted 2006) [#1]
I get an 'Expression of type 'String' cannot be invoked' error in the following code:
Local rqFile:String = RequestFile$("File to Create ...", "txt Files:txt", True, AppDir$() + "/Files")


.. What 'String' can't be invoked (yet again a very strange error from the books of BlitzMax)?


bradford6(Posted 2006) [#2]
AppDir$
not
Appdir$()


plash(Posted 2006) [#3]
Oh, I see. AppDir is a variable, not a function..


bradford6(Posted 2006) [#4]
yep, you could do this:
Local rqFile:String = RequestFile$("File to Create ...", "txt Files:txt", True, CurrentDir() + "/Files")


to make it more dynamic.


plash(Posted 2006) [#5]
Yeah, I could, but the point of using AppDir was, if some other program would open my program the current directory would be set to the parent process (not the specific path to my program).