Search found 9377 matches

by fxm
Mar 19, 2011 14:31
Forum: General
Topic: 'On [Local] Error Goto' and 'Resume [Next]' statements
Replies: 4
Views: 1849

'On [Local] Error Goto' and 'Resume [Next]' statements

I always try to write programs compatible with the compiler -lang fb and option -exx, because I always test my programs with option -exx for debugging purposes: - I never use the statement 'Resume [Next]', because it is not at all supported by -lang fb (compilation error). - On the other hand, somet...
by fxm
Mar 19, 2011 6:09
Forum: Beginners
Topic: maximise window to full screen when myprog.exe is launched
Replies: 10
Views: 2056

It works on my PC with : fbc: FreeBASIC Compiler - Version 0.21.1 (08-11-2010) for win32 (target:win32) OS: Windows XP (build 2600, Service Pack 2) After some tests, it works from FreeBASIC version 0.21.0 (I kept installed on my PC all the official FreeBASIC versions from 0.12b : 14 versions!). Hav...
by fxm
Mar 18, 2011 19:33
Forum: General
Topic: Bug with SWAP, or am I just being dumb?
Replies: 30
Views: 2978

SARG wrote:I suppose that the difference of issues between 0.18.4 and 0.21 is due to chance.....

You're probably right, because from time to time (depending on the starting configuration), I get the same behavior with 0.21.1 than with 0.18.4: program outputs 0 (instead of 25).
by fxm
Mar 18, 2011 17:16
Forum: Beginners
Topic: Set compiler path?
Replies: 2
Views: 1386

Menu : View/Settings/FreeBASIC
1st field : path of file "fbc.exe"
(example : C:\FreeBASIC\fbc.exe)

Everything is clearly explained in this topic:
http://www.freebasic.net/forum/viewtopic.php?t=13819
by fxm
Mar 18, 2011 11:49
Forum: General
Topic: IIF
Replies: 26
Views: 2403

For a given returned number type, IIf should be also considered as a function. Example for integer values Function IIfF(Byval condition As Integer, Byval expr_if_true As Integer, Byval expr_if_false As Integer) As Integer IF condition Then Return expr_if_true ELSE Return expr_if_false END IF...
by fxm
Mar 18, 2011 7:19
Forum: Beginners
Topic: maximise window to full screen when myprog.exe is launched
Replies: 10
Views: 2056

It works on my PC with : fbc: FreeBASIC Compiler - Version 0.21.1 (08-11-2010) for win32 (target:win32) OS: Windows XP (build 2600, Service Pack 2) After some tests, it works from FreeBASIC version 0.21.0 (I kept installed on my PC all the official FreeBASIC versions from 0.12b : 14 versions!).
by fxm
Mar 17, 2011 20:11
Forum: Community Discussion
Topic: EXPAND button for [code] in General.
Replies: 11
Views: 2128

Pritchard wrote:I could be wrong, but isn't the expand functionality the last bit to load in the code tags? I know when pages load extremely slow for me, all I can do is select.

Yes, I confirm.
It seems that the "EXPAND" button appears when the code is completely loaded.
by fxm
Mar 17, 2011 19:34
Forum: General
Topic: Bug with SWAP, or am I just being dumb?
Replies: 30
Views: 2978

Files.asm of my above test program without any compiler option. FreeBASIC 0.18.3 : program outputs 25 => OK .intel_syntax noprefix #D:/Prg/FXM/FreebasicFBIde046+FreebasicFBC018.3b/FBIDETEMP.bas' compilation started at 20:15:57 (FreeBASIC v0.18.3b) .section .text .balign 16 .globl _main _main...
by fxm
Mar 16, 2011 10:07
Forum: General
Topic: Bug with SWAP, or am I just being dumb?
Replies: 30
Views: 2978

Same bug on this very simple test program : DIM Tableau(9, 9) AS UBYTE DIM AS UBYTE I = 5, J = 5, T T = I * J SWAP T, Tableau(I, J) PRINT Tableau(5, 5) SLEEP - compilation without option => program hangs - compilation with option -e or option -ex => program hangs with runtim...
by fxm
Mar 16, 2011 9:32
Forum: Beginners
Topic: maximise window to full screen when myprog.exe is launched
Replies: 10
Views: 2056

Try

Code: Select all

'$lang:"qb"

__screen 12,,, 1

?" hello world full screen"


sleep:end
by fxm
Mar 15, 2011 23:14
Forum: General
Topic: Bug with SWAP, or am I just being dumb?
Replies: 30
Views: 2978

Same bug on this very simple test program : DIM Tableau(9, 9) AS UBYTE DIM AS UBYTE I = 5, J = 5, T T = I * J SWAP T, Tableau(I, J) PRINT Tableau(5, 5) SLEEP - compilation without option => program hangs - compilation with option -e or option -ex => program hangs with runtim...
by fxm
Mar 15, 2011 19:35
Forum: General
Topic: Bug with SWAP, or am I just being dumb?
Replies: 30
Views: 2978

Same bug on this very simple test program : DIM Tableau(9, 9) AS UBYTE DIM AS UBYTE I = 5, J = 5, T T = I * J SWAP T, Tableau(I, J) PRINT Tableau(5, 5) SLEEP - compilation without option => program hangs - compilation with option -e or option -ex => program hangs with runtime...
by fxm
Mar 15, 2011 12:39
Forum: General
Topic: Bug with SWAP, or am I just being dumb?
Replies: 30
Views: 2978

You are right. but WHY !? I do not know. - The fact that the defect disappears with the compilation option -exx (adding array bounds checking code) or disappears also reversing the order of the two variables "t" and "buff()" in the instruction "Swap t, buff(i, j)" might suggest that the problem is ...
by fxm
Mar 14, 2011 23:37
Forum: General
Topic: Bug with SWAP, or am I just being dumb?
Replies: 30
Views: 2978

In the 4 lines "swap ...", if you change the order of the 2 parameters :
swap minbuff(i,j), tmin
swap maxbuff(i,j), tmax
It runs !
by fxm
Mar 14, 2011 22:41
Forum: General
Topic: Bug with SWAP, or am I just being dumb?
Replies: 30
Views: 2978

OK, I understood because I always compile with option -exx !
Without that option, I have the same behavior than you !

Try it yourself with the compilation option -exx.

Go to advanced search