This problem is really killing me: what I need is a record that can contain arrays, something like this..
TYPE
var1 as integer
var2 as whatever
var3 as array(1 to n)
END TYPE
Question is how do I declare var3?? Is it possible to have arrays in records with qb? Please help...
simple, in the declaration of the sub/function insert your variables as parameters:
yoursub (yourvar,yourvar2,etc..)
or you might declare a var with DIM SHARED in the main module so that you can use it even in your subs/functions
This is a game. Who is the toy?
.:: PZ ::.
The most common errors of qb that causes the program not to compile are:
1)maybe your program uses mouse routines. Try running qb.exe again with the /l option
2)not enough memory. Maybe some lines you typed are too long or some arrays are too big. Try running again with the /ah option
3)too many...
Anyone know where I can find more *.x files or object files for DarkBASIC?
Thanx in advance! <p> Alex<br><a href=mailto:pizzapz@libero.it>pizzapz@libero.it</a><br><a href= > </a><br>*** Q(uick)BASIC RULEZ! :D***
In VB is there a way to reboot the pc with a code line or a statment?
Thanx in advance! <p> Alex<br><a href=mailto:pizzapz@libero.it>pizzapz@libero.it</a><br><a href= > </a><br>*** Q(uick)BASIC RULEZ! :D***
It's quite simple, really:
the most classic incorporation in qbasic that you can find is ASM. The reason is very obvious: speed!
To incorporate ASM with Qbasic you need first of all to know ASM and a ASM comiler.
You might have noticed that every time you compile a BAS file, with the new EXE...
Lupine, if ya use BSAVE/BLOAD on bmp files and then use your BSAVEed files in a program, you have to remember 2 things:
1-You have to save the palette used for diplaying the BMPs 'cuz you need it to for your main program (otherwise you get weird colors and figures...)
2-Or, you can display BMP...
Ever tried the BSAVE/BLOAD command?
BSAVE and BLOAD are two commands in the QBasic environment to allow
you to save graphics created using your method explained above
in a file. The file can then be loaded instantaneously from a program,
eliminating many of the delays.
Both of these commands...
Is there a way to rotate a point around a given axis in a 3d space? Example: point=P(3,4,5) and the axis is a line from (2,7,6) to (2,8,12). I can't find a way to make point P rotate around that axis! Please help me!<br><br>Thanx in advance! <p> Alex<br><a...
Qbasic doesn't have, like every other computer program, the concept of infinity, for this reason his counting range is limited. When that range is passed, QB just restarts from the smallest integer possibile (that's because of the binary conversion eg. MAX=01111111 min=10000000 at...
You need a good key-handler.<br>You can't press 2 key at once and detect them with INKEY$ (or if you can, it's real hell...). I suggest you use interrupts.<br><br>Alt255, I know I'm annoying with this, but I still suggest the Future Library to TheDutchBalrog...anyway there are a lot of good...
Go to <A HREF="http://www.qb45.com" TARGET="_new">www.qb45.com</A> and download the Future Library. It's a complete graphics/SVGA library in ASM (VERY fast).<br><br>Hope I helped :D <p> Alex<br><a href=mailto:pizzapz@libero.it>pizzapz@libero.it</a><br><a href= > </a><br>*** Q(uick)BASIC RULEZ! :D***
Try this out:<br><br>before your program starts declare your variable like this:<br><br>DIM SHARED player()<br><br>and you can use player.cash, player.hp, player.etc it in any sub/function without the COMMON SHARED statement.<br><br>Hope I helped :D <p> Alex<br><a...
I need a "something" (sub or function, whatever!) that checks if 3 cartesian points of a triangle in a 2D space are clockwise or counter-clockwise.<br><br>Thanx :D <p> Alex<br><a href=mailto:pizzapz@libero.it>pizzapz@libero.it</a><br><a href= > </a><br>*** Q(uick)BASIC RULEZ! :D***
I'm working on a 3D game engine (something like Zelda 64...)and I need a REALLY fast texture-mapper for polygons (I'm sick of flat-color surfaces! :( )<br><br>tell me about it at <A HREF="mailto:pizzapz@libero.it">pizzapz@libero.it</A><br><br>Thanx :D
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.