Search found 402 matches
- Apr 22, 2007 10:07
- Forum: Beginners
- Topic: Binary file record pointer
- Replies: 2
- Views: 1476
Binary file record pointer
I want to access random points in a file opened for binary access. 'This method will work open "simple.dat" for binary as #1 dim as byte b1, b4 dim p as integer p=100 do p+=1 get #1,p,b1 loop until b1=127 'what is needed at this point is the 13th byte BEFORE b1 get #1, p-13, b4 'a preferre...
- Apr 15, 2007 17:18
- Forum: Beginners
- Topic: Is there an equivalent QB.BI or QBX.BI in FreeBasic?
- Replies: 2
- Views: 1151
Is there an equivalent QB.BI or QBX.BI in FreeBasic?
I have found several (actually many) quick basic programs that I would like to have operable in FB. part of the code: '$include QB.BI This is the contents of QB.BI '*** ' Copyright <C> 1987 Microsoft Corporation & this is QBX.BI ' Copyright <C> 1987-1989 Microsoft Corporation Is there an equival...
- Apr 13, 2007 13:08
- Forum: General
- Topic: Cautions when using For:Next loops
- Replies: 7
- Views: 3014
Thirdly: For, Next and Step literals appear not to be checked for type range at compile time. You get no warning of type conversion. Here are two examples. from the freebasic manual The CUByte function rounds off the decimal part and returns a 8 bit UByte value. The function does not check for an o...
- Apr 12, 2007 11:52
- Forum: Beginners
- Topic: How do I find the S.O.B.?
- Replies: 1
- Views: 1065
How do I find the S.O.B.?
I have a short program that will compile and generate a executable file, but in the process, the compiler generates warning messages. Command executed: "C:\FreeBasic\fbc.exe" "C:\eMenu4x.bas" -ex -lang qb Compiler output: C:/eMenu4x.bas(690) warning 15(1): Branch crossing local v...
- Apr 11, 2007 21:43
- Forum: Beginners
- Topic: Why does the LPT not work?
- Replies: 3
- Views: 1386
Code: Select all
Open Lpt "LPT:,,EMU=TTY" As #io
That worked.
Thanks.
Sending a sequence of control codes (for specific printer functions)
is going to require a few minutes, when only the readable printed
data is required at this time.
Again thanks.
- Apr 11, 2007 19:06
- Forum: Beginners
- Topic: Why does the LPT not work?
- Replies: 3
- Views: 1386
Why does the LPT not work?
[ the BOLD, Quote, Code, URL styles are NOT functioning. ] I do not know what this caused. This is what started the problem: DIM AS INTEGER io, operr : io = FREEFILE OpErr = Open Lpt ( "LPT:" As #io) PRINT #io, "Testing printer." : PRINT #io, CHR(12) CLOSE #io END There was no pr...
- Apr 10, 2007 12:10
- Forum: Beginners
- Topic: Why are SUBROUTINES & FUNCTIONS different?
- Replies: 4
- Views: 1314
- Apr 09, 2007 7:56
- Forum: Beginners
- Topic: Why are SUBROUTINES & FUNCTIONS different?
- Replies: 4
- Views: 1314
Why are SUBROUTINES & FUNCTIONS different?
I cannot grasp the reason for the differences in the way the parameters are passed. Could someone point to a reference that would clarify this? or better just explain it. This is a trial to help me understand the range of possibilities. I'm either at the right address but the wrong street or I'm at ...
- Apr 07, 2007 0:26
- Forum: Beginners
- Topic: Cannot Create Subroutine with string parameter
- Replies: 5
- Views: 2385
- Apr 06, 2007 18:40
- Forum: Beginners
- Topic: Cannot Create Subroutine with string parameter
- Replies: 5
- Views: 2385
Cannot Create Subroutine with string parameter
There is something wrong, but I cannot understand it. I can create a subroutine using doubles and integers but the attempt at using a string just doesn't work. What is wrong? I do not know what default suffix is being intended. Why is the string described as mis matched in the sub? dim as string Job...
- Apr 03, 2007 2:28
- Forum: Beginners
- Topic: Is there a current list of changes to FB?
- Replies: 3
- Views: 1002
- Apr 02, 2007 17:20
- Forum: Beginners
- Topic: Is there a current list of changes to FB?
- Replies: 3
- Views: 1002
Is there a current list of changes to FB?
The download site has information about 0.16b (15b, 14b ...) listing the changes, fixed, modifications, etc.
Is there a current list for the changes (changelog) for 0.17b ?
The Wiki page has a synopsis.
Just wondering.
Is there a current list for the changes (changelog) for 0.17b ?
The Wiki page has a synopsis.
Just wondering.
- Mar 31, 2007 23:08
- Forum: Sources, Examples, Tips and Tricks
- Topic: CONTINUE -- I did not know how to CONTINUE
- Replies: 0
- Views: 1246
CONTINUE -- I did not know how to CONTINUE
I realize that everyone knows about this. I just wanted someone to know that now I know about it. btw, there may be one other thing in the universe I do not understand. /' The loss of the GOTO statement brought me to the decision fork: spend a bunch of hours/days/weeks re-writing some code that work...
- Mar 30, 2007 21:51
- Forum: Beginners
- Topic: Pretty Printing or formatted listing Basic Programs
- Replies: 5
- Views: 1633
I copy/pasted the code. Didn't read it. Didn't care what it was supposed to do, or intended to do. The random spaces that were there when I copied/pasted have now failed to appear. I was not aware of that feature of the forum that removes extra spaces in the messages. There are programs that will in...
- Mar 30, 2007 4:11
- Forum: Sources, Examples, Tips and Tricks
- Topic: Quaternion library
- Replies: 11
- Views: 5130