Hi Rob,
The variable linkage of the first compile appears to carry over to the second compile.
But I found that inserting an empty compile before your second compile, fixes the problem:
o2_basic ""
o2_basic s
Hi all,
Seems I need to delete function declarations (linked to O2) from within TB to be able to reuse them.
Been browsing the help files, but for the moment I found nothing.
If it is not possible I can do it without the linked functions (by a simple O2_EXEC), but it should be handy ...
thanks in advance, Rob
(attached something showing the problem)
Last edited by RobbeK; 06-01-2014 at 23:24.
Hi Rob,
The variable linkage of the first compile appears to carry over to the second compile.
But I found that inserting an empty compile before your second compile, fixes the problem:
o2_basic ""
o2_basic s
Ah, excellent !!
I was working on something to bypass the usual "Eval" by using O2.
But already converted it to a "global" 02 call in the mean time -- but i'll convert it back.
In the program the textbox at the bottom left accepts any formula (within the Oxy syntax ) - the compiling is done by pushing the O2 button.
Scaling of the z values (f(x,y)) is done by half values/double values (buttons). Scaling the grid x,y is auto etc... animations by the cursor keys ...
(can be handy for young math students , wanting to have a look ... a picture tells more than 1000 words (infact this are 10000 numbers representated :-)).
thanks Charles !
(prog best at full screen)
I'll be damned!
Mike
(3.6GHz i5 Core Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, x64 Windows 7 Ultimate Sp1)
Hi Rob,
I think using shared variables and the simple o2_basic / o2_exec scheme, as you have done here, is the best solution for this kind of program.
I recommend removing the bye() procedure, so that Oxygen will automatically terminate, freeing all of its resources at the end of each o2_exec.
Charles,
Could you please provide me a link to something
that explains Oxygenbasic's interaction with thinBasic?
I mean like it's purpose for thinBasic and what it's
suppose to do for it.
Thanks,
Bill
Hi Bill,
I have revised the original thinBasic_Oxygen compiler module post, containing a brief description.
http://www.thinbasic.com/community/s...ead.php?t=9653
I hope this helps.
Thanks for setting the trap. Once Eros accepts that PowerBASIC (and its author) is dead, maybe he can use ALL the features of O2 rather than piece mealing them in.And I would be delighted if any of the innovations in Oxygen might also be usefully deployed in thinBasic itself.
Last edited by John Spikowski; 08-01-2014 at 23:43.
Intriguant!
Mike
(3.6GHz i5 Core Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, x64 Windows 7 Ultimate Sp1)
Bookmarks