Well, it depends on the person.
People who knows nothing of programming and computers, will get more scared of graphical drawings, like a worm, and a message: "You have a virus!"
People who knows normal, will not fall for the first, but might believe some normal text.
Maybe a message...
Well folks, it is pretty simple.
The integer in QB is made of 2 bytes.
The file is read byte-by-byte.
So if u read two bytes, you proceed 2 bytes, and not one.
Cheers
Erez Sh.
Oh. Old version.
Qb 1.0 probably doesn't support it.
U should upgrade to at least QB 4.0 (4.5 recommended).
Go to:
http://www.qbasicnews.com/features/compilers.html
Using peek and poke can be useful sometimes, but in your case it can cause harm. Unless knowing exactly where to write in memory...
Basically, it is limited to 32767 elements, per dimension.
When I said qbasic support 100000 elements, i ment like this:
DIM a(25000,4) as string*1
I works for any size, except for when it's out of memory.
But that's something else. Cheers
Erez Sh.
VB does not support assembly.
(Visual)C/C++ does.
Delphi does too.
BTW
Check this site:
http://zedlands2.myip.org/logic.htm
It's on a programming language that uses assembly.
Cheers
Erez Sh.
I'm talking about using the GET statement.
I don't think it will load 4 btes to each array element.
I will probably load 1 byte to each.
besides, DIM a(100000) as string*1 works for me
Why shouldn't it work 4 u? Cheers
Erez Sh.
It is a waste to use an integer or a double to contain single bytes.
use :
DIM a(size) AS STRING * 1
But why load an entire file to memory???
Cheers
Erez Sh.
INT will always return the lowest integer value.
exmaple: INT(10.9)=10 , INT(-10.9)=-11
FIX will always return the integer part.
example: FIX(10.9)=10 , FIX(-10.9)=-10
CINT will round up the number to the closest integer value.
example: CINT(10.9)=11 , CINT(-10.4)=-10 Cheers
Erez Sh.
Hi.
I had this problem too long time ago.
It's true, u should use QBX /L qbx.lib
or an other librar (i don't remember).
Oh, also use the $include as above. Cheers
Erez Sh.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.