Libraries and reusing stacks
Posted: Mon Oct 20, 2008 7:17 am
Sometimes my mind just refuses to understand some things, like the use of Libraries in Rev. I've read lots of forum posts, the user manual, fourthworlds guide but I still don't get it. (I'm very new to Revolution..)
I've created a library stack called libRPG where I've put one function at the moment. My problem is that I can't get my application stack to use it. They're both in the same directory and I've tried using: start using stack "libRPG" and start using stack "libRPG.rev" in the application stack's preOpen handler. The only thing that happens is that I get an error that Rev can't find the object. Obviously I'm misunderstanding something here. Do I have to "import" the stack to my application? If so, how do one import other stacks? I read somewhere that you can use other stacks (that's not in the application) if you supply the filepath but I can't figure out how to do this..
Thanks,
Fredrik
I've created a library stack called libRPG where I've put one function at the moment. My problem is that I can't get my application stack to use it. They're both in the same directory and I've tried using: start using stack "libRPG" and start using stack "libRPG.rev" in the application stack's preOpen handler. The only thing that happens is that I get an error that Rev can't find the object. Obviously I'm misunderstanding something here. Do I have to "import" the stack to my application? If so, how do one import other stacks? I read somewhere that you can use other stacks (that's not in the application) if you supply the filepath but I can't figure out how to do this..
Thanks,
Fredrik