|
Post by Wayne Rayner on Nov 30, 2009 0:25:46 GMT -5
Ok if I made code that has a menu in one basic4GL code file link it to say the newgame code in another Basic4GL code file.
I hope this is a good enough example. I believe you can do this in C++ and I hope you can do this in Basic4GL.
Thanks for you help
|
|
|
Post by DJLinux on Nov 30, 2009 3:26:44 GMT -5
include mymenusystem.inc
of course you can include your working code in any new program
Joshy
|
|
|
Post by Wayne Rayner on Nov 30, 2009 3:34:13 GMT -5
ok more of what I mean is say menu.gb if there is a button in menu.gb called new game and you click on it it then runs code from newgame.gb does that work in basic4GL or not. The names I came up with are just for example
|
|
|
Post by DJLinux on Nov 30, 2009 3:40:46 GMT -5
if MenuButtonRunGame then Program=CompileFile("game2.gb") Execute(Program) end if and you can run any *.exe with the funky ToolBox Plugin ;D see Run() and Execute() Joshy
|
|
|
Post by Wayne Rayner on Nov 30, 2009 3:48:06 GMT -5
Ok thanks that helped me heaps
|
|
|
Post by Adam on Dec 1, 2009 3:05:11 GMT -5
actually i recommend using "comp" and "exec" because run and execute are outdated and you should avoid using them if you can
|
|
|
Post by twasik4 on Dec 1, 2009 12:21:32 GMT -5
Is there something wrong with outdated stuff?
|
|
|
Post by Wayne Rayner on Dec 1, 2009 15:42:21 GMT -5
It is advised by Tom Mulgrew that you should use the new commands instead of using the old one. The only reason why Tom has kept the old commands for compatibility sake.
|
|
|
Post by twasik4 on Dec 1, 2009 19:25:17 GMT -5
Oh, well i don't have the new b4gl.. ive kind of not been using it lately. And if your like shadow and wonder why the hell im still on these forums.. Well i'd still like to help others with the little bit of knowledge i still remember. Also, ive made a very good friend on these forums.
|
|
|
Post by Wayne Rayner on Dec 1, 2009 20:58:04 GMT -5
yea I was like that for most of the last 6 months but now I'm kinda just working on music player and hopefully I can achieve what I want with it.
|
|