Expression of type 'String' cannot be invoked
BlitzMax Forums/BlitzMax Programming/Expression of type 'String' cannot be invoked
| ||
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)? |
| ||
AppDir$ not Appdir$() |
| ||
Oh, I see. AppDir is a variable, not a function.. |
| ||
yep, you could do this:Local rqFile:String = RequestFile$("File to Create ...", "txt Files:txt", True, CurrentDir() + "/Files") to make it more dynamic. |
| ||
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). |