Search found 1647 matches

by angros47
Jan 24, 2007 18:17
Forum: General
Topic: Variables with the same name
Replies: 10
Views: 2650

Variables with the same name

In FreeBasic variables of different types with the same name or variables and arrays with the same name are not allowed. IE: A=1 A$="TEXT" dim A%(50) is an illegal code in FB, while is allowed in QB. I think that, altough it' a good idea to prevent some errors, this change is the m...
by angros47
Oct 24, 2005 17:24
Forum: Tips and Tricks
Topic: FreeBasic interpreter?
Replies: 42
Views: 19779

Your works are very interesting, I'll test them (sorry, but in these days I haven't so much time). Let's see how to work in GetMouse, RGB and other functions: In function GetNum, find the lines: LOOP IF Par$ <> "" THEN Op$ = Op$ + "(" + Par$ + ")" IF a = CountSu...
by angros47
Oct 13, 2005 21:30
Forum: Tips and Tricks
Topic: FreeBasic interpreter?
Replies: 42
Views: 19779

how do i detect the difference between 1 arg and 0 args? IF Arg$ = "" THEN 'No Args ELSE ' 1 or more args END IF The Args$() array contains split arguments, while the Arg$ string contains ALL the argument line, with commas and spaces (but without ":" or "'"). If a commands has no argument...
by angros47
Sep 13, 2005 17:43
Forum: Tips and Tricks
Topic: FreeBasic interpreter?
Replies: 42
Views: 19779

Well, it should works correctly if the source file is error-free. I find that it's faster, for debug purpose, having the test-program and the interpreter in the same file, but your change is a logic step. This debugger is not useful in actual state, because it lacks lots of commands, but you could a...
by angros47
Sep 10, 2005 8:51
Forum: Tips and Tricks
Topic: FreeBasic interpreter?
Replies: 42
Views: 19779

The last version.... Supporting SELECT . ... CASE Fixed a bug in command likes a(3 + 1) = 8 ' Basic Interpreter Engine written by Angelo Rosina, 2003 - 2005 DECLARE SUB GetSubVar (Var$, SubVar$) DECLARE SUB CreateArray (Var$) DECLARE SUB SetSubVar (Var$, Valore$) DECLARE SUB ...
by angros47
Sep 06, 2005 16:54
Forum: Tips and Tricks
Topic: FreeBasic interpreter?
Replies: 42
Views: 19779

I'm not used to SQL, anyway I start writind this interpreter in 2003 when I was working at UltraBasic. The source code was in QB and I'm continuing developing it in QB, because the Ide and the debug support are excellent. Using SQL would require BIG changes to the Main function (it works with a simp...
by angros47
Sep 03, 2005 8:27
Forum: Tips and Tricks
Topic: FreeBasic interpreter?
Replies: 42
Views: 19779

This program is an alpha version and is a bit buggy (only a bit? :-P) Of course you can use it in your apps, if you add this as first line: ' Basic Interpreter Engine written by Angelo Rosina, 2003 - 2005 If you made any change to the engine, you have to let me know it. Besides that, conditions of z...
by angros47
Aug 01, 2005 18:16
Forum: Beginners
Topic: Scripting... i think...
Replies: 23
Views: 6029

I made a primitive Basic -like scripting interpreter, you can found it under "Tips and Tricks" section
by angros47
Jul 23, 2005 7:36
Forum: General
Topic: Getting a freebasic program on a ARM based pocket PC
Replies: 12
Views: 4608

Of course there are emulators; have you tried PockedDOS? It works, but only Dos 16-bit (not enough for FreeBasic, but QB works) freeBASIC for DOS? I said: Only Dos 16-bit. FreeBasic for DOS is 32-bit, and also all programs compiled with it. A 32-bit extender requires a 32-bit processor (at least a ...
by angros47
Jul 19, 2005 8:22
Forum: General
Topic: Getting a freebasic program on a ARM based pocket PC
Replies: 12
Views: 4608

ARM (Advanced Risc Machine) was originally Acorn Risc Machine. It should be 32-bit (at least, i think) but its architecture is based on 65816 (a 16-bit version) and on 6502 (the 8-bit version) 6502 was the processor of the original Acorn BBC (and also for Apple II, Vic-20 and Commodore 64). Acorn de...
by angros47
Jul 09, 2005 8:48
Forum: Tips and Tricks
Topic: FreeBasic interpreter?
Replies: 42
Views: 19779

This is a newer version.... It supports: SUBS/FUNCTIONS with parameters, recursion, emulated passing by reference, BYVAL keyword IF is improved (not only =, but also >,<,>=,<=) DO-LOOP (for now without parameters9 Var scoping (no shared vars, for now) FOR-NEXT (STEP will come) DIM (Yeah! Only one di...
by angros47
Jun 23, 2005 18:36
Forum: Tips and Tricks
Topic: FreeBasic interpreter?
Replies: 42
Views: 19779

FreeBasic interpreter?

QuickBasic was made of a compiler (bc.exe) and an interpreter (qb.exe). The interpreter was, in my opinion, the best debugging instrument I've ever seen. But now, FreeBasic has only the compiler. About a year ago, I tried to write an interpreter for the Ultrabasic compiler: it's written in QB and is...

Go to advanced search