@RedOktober
You don't move the map, you change the start-of-reading point within the map. Something like this :
'-- MAP(?,?) is the stored Map-data
'-- Guess what MapWidth & MapHeight are :-)
'-- Where do I draw my map on the screen ?
BoxX=3:BoxY=2
'-- What's the width & height of the drawn...
@Oak
Yes, this (and other) methods can be used moderatily well, and I have used them in the past.
But I would like to be able to use QBasic's own mechanism to retrieve the contents of the user-supplied arguments ...
So, although I can let QBasic communicate with some Assembly-code, I regard...
@agual
You're right. I've downloaded "winer.zip" and the last chapter talked about some assembler.
Alas, it talks about Assembler in QB, and my problem is not with creating an Assembly-program, nor with QB. My problem is with retrieving argument-related data in *QBasic 1.1*...
@MiggyD
First off, due to a pourly done snipping of mine, the command DEFINT A-Z became part of a remark-line :-( It should be present just above the "Call ViewMap" -line.
And, as far as I can tell, Constants do not have a fixed type (integer,long,string, etc). A constant can hold...
@agual
>DECLARE FUNCTION PlaceFgBlock% (Gx%, Gy%, iBlock%)
>and function is defined as:
>FUNCTION PlaceFgBlock (Gx, Gy, iBlock)
>END FUNCTION
That's correct. The DEFINT A-Z (above the function itself) is suppressed in the saved file, because of the DEFINT A-Z in the main module, which becomes...
@agual
Could you show me which declarations have changed, and how ?
I mean, I do not write my own declarations, I just let QBasic generate them as he likes.
I've even removed them a number of times, just to be sure the "correct" definitions where (re) generated.
Listening to you I...
@MiggyD
"DIM SHARED ViewRec" : this does not work. The "ViewRec" in this declaration will be(come) a simple variable of the default type(in my case, Integer). It will have nothing to do with de *structure-definition* of the same name.
*Structure-definitions* are (AFAIK)...
@MiggyD
"Simply removing the declarations at the main module does not mean that the Sub/Func Modules are ALSO erased/deleted."
I know ! The whole point here is that even when I do not change anything to *my code*, QBasic responds differently depending one th existence of those few...
Hello all,
Some time ago I tried to make sense of the "call absolute" statement in QBasic 1.1 , and was amazed that I could not find anything worthy on the 'net.
What I tried to do was to find, for every argument used in the "call absolute" statement, in Assembly, what...
Are you sure you have to have the full contents of that data-file into (QB's) memory ?
Maybe you can read your data-file line-by-line, and process it that way ?
Handle=freefile
open "yourfile.dat" for input as #Handle
while not eof(Handle)
line input #Handle,Line$
'-- here...
quebasic (Programmer) Jul 18, 2002
> qb 4.5 works as an interpeter and then can be compiled
So much for my memory and/or knowledge :-( :-)
I just have un-zipped QB45 (yes, I had it stored somewhere), and saw you where right. Thank you for correcting me.
Now let's explore some and see what...
Hello quebasic,
I'm sure you are right. Alas, QuickBasic 4.5 is non-comparable to QBasic 1.1. If I'm not mistaken, QB 4.5 is an compiler, while QBasic is an interpreter. And I like the Interpreter-behaviour of QBasic :-)
I hoped one of the "old timers" in this forum would...
To MiggyD :
Thank you for you answer. But alas, the problem is not an Argument-count mis-match.
As I allready said in my first post, the error(s) are generated at places fully un-related to the change/adition just made by me ...
The Error(s)dis-appear when I remove the sub/function...
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.