Search found 2865 matches

by Richard
Mar 07, 2007 19:55
Forum: Documentation
Topic: Underscore rules
Replies: 3
Views: 2353

Yes, it does make sense which is why I tried it. The parser needs to know what to look for next. The Help on REM gives a new way of having comments that straddle multiple lines by using /' and '/ but this is a different situation since my example actually places the comments within the line of sourc...
by Richard
Mar 07, 2007 3:27
Forum: Documentation
Topic: Underscore rules
Replies: 3
Views: 2353

Underscore rules

Use of underscore character to use multiple text lines for one line of source code seems to allow comments on all text lines. This is great for documenting lists. dim as _ integer i for _ ' comments i _ ' are = 1_ ' ok to 10 ' within print _ ' extended i ' lines next i sleep Now the only problem is ...
by Richard
Mar 05, 2007 23:25
Forum: General
Topic: "Format" keyword not recognised
Replies: 3
Views: 837

My mistake

Thanks for pointing out the missing #include. My mistake, I'll try not to do it again. I don't mind if maybe one day someone else learns from my mistake. Re: Typeof. If the next version of docs has Typeof then I will be quite happy. If I use the last official release 0.17b I am told to load the curr...
by Richard
Mar 05, 2007 20:36
Forum: General
Topic: "Format" keyword not recognised
Replies: 3
Views: 837

"Format" keyword not recognised

when I use: Print Format (12.345678, "###.###") "Format" is not recognised as a keyword in lang_qb or lang_fb, (CVS 01-March-2007) I get: error 41: Variable not declared, Format in 'print Format (12.345678, "###.###")' And: warning 12(0): Implicit variable allocation, Format FBIde:...
by Richard
Mar 01, 2007 12:36
Forum: Beginners
Topic: "No Leading Zero" number bug? in READ of DATA (now
Replies: 4
Views: 1074

DATA trailing zero Bug Fixed.

Bug fixed, many thanks to v1ctor.
by Richard
Feb 27, 2007 22:14
Forum: Projects
Topic: Organic Looking Patterns.
Replies: 5
Views: 2211

Organic Looking Patterns.

I wrote this "Martin Set" code back in the 1980's, in those heady days of the Mandelbrot set. It was tailored to give a more friendly human pattern to the screen. It has adapted with the hardware speed and software tools. I have kept the source code below 1 kByte. Each run gives a different result. ...
by Richard
Feb 27, 2007 2:12
Forum: General
Topic: Colliding atoms (circles) and trigonometry, oh my!
Replies: 19
Views: 3225

Well things are happening! I have been away for a few days, so here are quite a few thoughts on the subject. This game clearly has two parts separated by a trigger event. Set it up then knock it down! Do you want it to look like chemistry or like billiards? Are we considering a 2D or a 3D model? or ...
by Richard
Feb 22, 2007 11:20
Forum: General
Topic: Colliding atoms (circles) and trigonometry, oh my!
Replies: 19
Views: 3225

No problem, it can be done in FreeBASIC. There are a number of ways to handle a problem like this. You could model the relationship between pairs of elements and get an idea of the forces and interactions. This is a reductionist approach. I suspect you may be able to then model the entire system by ...
by Richard
Feb 17, 2007 2:48
Forum: Beginners
Topic: "No Leading Zero" number bug? in READ of DATA (now
Replies: 4
Views: 1074

I have uploaded to CVS 16 Feb 2007. The problem is still there!
My output is still;
100.000
20.000
3.000
0.400
0.500
0.600
0.700
0.080
0.009
It only does it in -lang qb, not in deprecated or fb
by Richard
Feb 03, 2007 16:56
Forum: Beginners
Topic: "No Leading Zero" number bug? in READ of DATA (now
Replies: 4
Views: 1074

"No Leading Zero" number bug? in READ of DATA (now

This code demonstrates what I think might be a bug in DATA statements when running under windows in -lang qb compiler mode. ' compiler command "<$fbc>" -lang qb "<$file>" '========================================= ' Demonstrate faulty DATA read code when in < -lang qb > mode. ' A...
by Richard
Jan 20, 2007 1:09
Forum: Beginners
Topic: PRINT USING problems / differences
Replies: 9
Views: 1482

Problem resolved. Thanks all, for all that help.
by Richard
Jan 19, 2007 11:43
Forum: Beginners
Topic: PRINT USING problems / differences
Replies: 9
Views: 1482

Thanks for the reassurance, v1ctor. Sorry about wasting your time but I am a beginner at this CVS thing. As I understand it, to fix the bug now, I must obtain a copy of the current CVS files from a server somewhere, sourceforge.net ? Do I need to register ? Do I need to compile them or is a compiled...
by Richard
Jan 18, 2007 14:15
Forum: Beginners
Topic: PRINT USING problems / differences
Replies: 9
Views: 1482

I think v1ctor is refering to an old "exponent too big" bug. I think this may be a related "exponent too small" bug. I started with bundled FBIde and FreeBASIC 0.15 I have downloaded and upgraded to FreeBASIC 0.16 I have upgraded to FreeBASIC 0.17b compiler I tried to use the help file example code ...
by Richard
Jan 16, 2007 7:02
Forum: Beginners
Topic: PRINT USING problems / differences
Replies: 9
Views: 1482

PRINT USING versus FORMAT$

Thanks for the helpfull reply; Using #define and FORMAT$ is a good work-around for new code but you have to watch out for the trailing zero suppression and leading spaces. The code I show below replaces the PRINT USING code. It looks more like old FORTRAN IV. It does not handle oversize numbers, als...
by Richard
Jan 15, 2007 21:19
Forum: Beginners
Topic: PRINT USING problems / differences
Replies: 9
Views: 1482

PRINT USING problems / differences

When I run the following code under QB45 I get clean columns of output. FreeBASIC drops near zero values into exponential notation which upsets the formatting. When numbers are too big for the field they should use exponential, when too small they should display as 0.000000 DEFDBL A-Z Pi = 4 * ATN(1...

Go to advanced search