Identifier 'binpath' not foundMonkey Forums/Monkey Beginners/Identifier 'binpath' not found
| I have a string var, called "binpath". I want to be able to access this from every class/method in my game.|
Apparently putting Global binpath:String="C:" is not the way, as I get "Identifier 'binpath' not found". So if that's not the way, what is?
| Works fine here. if you wanna access it from a different file, make sure you import the file in it, where the global is defined. |
| it should work if you import the monkey file that has the global in it |
| Thanks... that's the bit I was missing. |
| Dave, one thing I got in the habit of doing thanks to Mike's book is I make a file that has all the imports in it and then you only have to have one import in each of your files. |
| Thanks - handy tip.|
Mike's book???? What's Mike's book?
| For Mike Hart's book check out the links in his signatures. |
| I don't think that my book will help him. |
I don't think that my book will help him.
...marketing's not your strong point, is it?
| I just care about my reader base. And judging by your posts on both boards, i simply don't think that the book will suit your needs. But maybe i misjudge you.|
what do you expect from a book like this?
I think GfK wanted to say that you should try to sell your work. It doesnt matter if the buyer needs it or not. You should make him thinks he will need it :P