|
Post by James :) (aka Madcow) on Aug 5, 2012 10:22:14 GMT -5
The documentation for basic4gl is out of date and I can't find the forum post I want. But I rmember you being able to bind code in a string to a function ot be execute in Basic4GL when that function is called
What is the function for this?
|
|
|
Post by matthew on Aug 6, 2012 16:50:46 GMT -5
The only command I could find that sounds vaguely like what you described is the Compile command. Is that what you're looking for?
|
|
|
Post by James :) (aka Madcow) on Aug 8, 2012 3:22:35 GMT -5
Nope, sorry I've been trying to search the basic4gl forums for ages, Tom had an example of you predefining a subroutine and then you could bind some code on the fly using a command I think in conjuction with the complie command.
|
|
|
Post by matthew on Aug 8, 2012 8:46:52 GMT -5
I've spent the past 10 minutes looking through all the posts that Tom has made but sadly I couldn't find one like what you mentioned. I'm assuming you've already looked through the Language Guide because there's a section in there describing how to call Functions/subs inside compiled code. The only other example that I can think of which does something similar is the Function Graphing program that Tom wrote. Are you sure that Tom wrote the code that you're trying to find?
|
|
|
Post by James :) (aka Madcow) on Aug 9, 2012 8:05:42 GMT -5
I might just be oging mad haha, maybe it dosnt exsist ah well
|
|
|
Post by matthew on Aug 9, 2012 12:55:03 GMT -5
LOL Don't worry I don't think you're going mad because I seem to remember a similar post. In the Basic4GL Language Guide there is a command called BindCode which might be what you're looking for.
|
|
|
Post by James :) (aka Madcow) on Aug 9, 2012 17:24:24 GMT -5
That is the one I swear I coudnt find it in the language guide, thanks a huge help Just bumped into another of one of Basic4GL's annoying limitations. I can't get the remainder of a floating point number with the "%" but the number as basic4gl only likes int's with the "%" but a int cannot hold the number as it's too large
|
|
|
Post by matthew on Aug 9, 2012 19:49:20 GMT -5
In C++ there's a Command called fmod which deals with floating point numbers. So I created a Plugin that you can use, just place it in your Basic4GL Folder. You can download it here. Usage is as follows...
|
|
|
Post by James :) (aka Madcow) on Aug 10, 2012 8:01:34 GMT -5
thank you
|
|