Page 1 of 1

New Install of latest FNX - Error 2077 on Compile

Posted: Thu Dec 02, 2010 5:06 pm
by K5HUM
Just installed the 2010 release of FNX.
Location c:compfnx
and c:compfnxsource

I get error Runtime error at 2077, cannot create file
in path etc, but it does run a pre existing EXE in that same source folder.

Can someone tell me the fix please?

Tia
Mike

New Install of latest FNX - Error 2077 on Compile

Posted: Tue Mar 29, 2011 4:19 pm
by Bereb
I have installed FnxBasic a short while ago, and I like it. But I meet with same problem after having updated with the latest version of Fnx-compiler. Same error 2077, and I had to go back to the initial version to make my scripts run.

Consequently I can`t get some corrections of bugs... :-/
It`s a pity ! Nevertheless I go on enjoying this easy, and yet efficient, Basic that I use jointly with others (SDLBasic, FBSL) :)

New Install of latest FNX - Error 2077 on Compile

Posted: Wed Mar 30, 2011 3:45 pm
by Marco
do you compile your source at the command line or with the editor?
at the command line you need to give the full path of your source.
there is an easier way to compile just drag (left mouse button down) as the way you move files inwindows and the drop it on the compiler.exe (left up) then it will compile your file.
if you place the command REPORT in your source you don`t have to read the log file.
if there is a runtime error you can find the line within the source if you place DEBUG 2077 at one of the first lines in your source the compiler stops then with compiling and reports the line number.

i hope this will help a bit.

best regards marco


New Install of latest FNX - Error 2077 on Compile

Posted: Wed Mar 30, 2011 4:34 pm
by Bereb
Thank you for the answer.

I`m used to compile my sources from the editor. I tried also with sources already compiled with the previous version, which caused then no errors. Is this a problem of compatibility between the updated compiler and the editor ?

So I`ll try to compile my sources as you explain and I`ll tell you about the result of my tests
:)

New Install of latest FNX - Error 2077 on Compile

Posted: Wed Mar 30, 2011 5:31 pm
by Bereb
I made two tests (drag and drop) with sources from the Examples folder : arrayofbuttons.bas and graphics.bas.

The first one gives this message :
FNXBasic compiler (c)Marco Waterman 2006-2009
error:8 line:9 `PARENT` not declared/unknown
compiler aborted

The second one gives that :
FNXBasic compiler (c)Marco Waterman 2006-2009
error:8 line:13 `LINE` not declared/unknown
compiler aborted

But I succeeded compiling one of my scripts, but only after some modifications :

-------------------------------------------------------------------------
dim fenetre as form
     fenetre.caption="Dplacer la souris dans la fenetre"
     fenetre.center
     fenetre.onmousemove=positionsouris
fenetre.showmodal

sub positionsouris(sender as form, shift as string,x as integer, y as integer)
     sender.caption="Dplacer la souris - X = " + str$(x) + ", Y = " + str$(y)
end sub
-------------------------------------------------------------------------
Translation:
"Dplacer la souris dans la fenetre" = "Move the mouse in the window"
positionsouris = mouseposition
--------------------------------------------------------------------------

Here are my modifications before the script can run :

1) form.center=true -> form.center
The propertie `center` seems to be a method now.

2) arguments of form.onmousemove routine have changed.
With the previous version of fnx-compiler I must declare only three arguments:
Sub MousePos(sender as form, x as integer, y as integer) ...

With the updated version I must include a fourth argument:
Sub MousePos(sender as form, shift as string, x as integer, y as integer) ...
as described in the help file moreover.

Are there other changes in the latest version and is there an updated documentation and a compatible editor ?

New Install of latest FNX - Error 2077 on Compile

Posted: Fri Apr 01, 2011 3:55 pm
by Marco
Hi, i `ve noted somwhere but the old version and new version are not completely compatible, the new version has no support for object arrays (yet). The old editor does not work with the new compiler, gives an error.
It could be that your program functions in the old compiler and not in the new one. You can rewrite the code where it goes wrong or use the old compiler to finish your program. The new compiler will not change anymore exept I try to get the bugs out and add some more functions.

I hope this will helps you
best regards

New Install of latest FNX - Error 2077 on Compile

Posted: Fri Apr 01, 2011 4:50 pm
by Bereb
Thanks for the clarification.

I think I`ll go on with the old version for the moment, in order to familiarize myself with FNXBasic, and I`ll take a look at the new version later or from time to time, trying to understand differences and incompatibilities.
I`m keen on discovering and trying out this new version (just for fun, I`m not a programer, just a hobbyist)

In any case, thank you for your work about FNXBasic.

New Install of latest FNX - Error 2077 on Compile

Posted: Sat Apr 02, 2011 3:43 pm
by Marco
Hi, i wrote the compiler as a hobby, I`m not a programmer too. Although I wrote programs from the beginning of the computer mostly basic programs and some assembly.
The new version is not finished that`s why it`s at the forum.

best regards