New Install of latest FNX - Error 2077 on Compile

Here one can report bugs or hold discussions about bugs updates and work arounds.
Post Reply
K5HUM
Posts: 3
Joined: Tue Nov 08, 2005 3:00 pm

New Install of latest FNX - Error 2077 on Compile

Post: # 682Post K5HUM
Thu Dec 02, 2010 5:06 pm

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

Bereb
Posts: 4
Joined: Thu Mar 24, 2011 3:01 pm

New Install of latest FNX - Error 2077 on Compile

Post: # 683Post Bereb
Tue Mar 29, 2011 4:19 pm

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) :)

Marco
Site Admin
Posts: 246
Joined: Sat Sep 15, 2018 8:41 pm

New Install of latest FNX - Error 2077 on Compile

Post: # 684Post Marco
Wed Mar 30, 2011 3:45 pm

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


Bereb
Posts: 4
Joined: Thu Mar 24, 2011 3:01 pm

New Install of latest FNX - Error 2077 on Compile

Post: # 685Post Bereb
Wed Mar 30, 2011 4:34 pm

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
:)

Bereb
Posts: 4
Joined: Thu Mar 24, 2011 3:01 pm

New Install of latest FNX - Error 2077 on Compile

Post: # 686Post Bereb
Wed Mar 30, 2011 5:31 pm

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 ?

Marco
Site Admin
Posts: 246
Joined: Sat Sep 15, 2018 8:41 pm

New Install of latest FNX - Error 2077 on Compile

Post: # 687Post Marco
Fri Apr 01, 2011 3:55 pm

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

Bereb
Posts: 4
Joined: Thu Mar 24, 2011 3:01 pm

New Install of latest FNX - Error 2077 on Compile

Post: # 688Post Bereb
Fri Apr 01, 2011 4:50 pm

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.

Marco
Site Admin
Posts: 246
Joined: Sat Sep 15, 2018 8:41 pm

New Install of latest FNX - Error 2077 on Compile

Post: # 689Post Marco
Sat Apr 02, 2011 3:43 pm

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

Post Reply