Qbasicnews.com

Full Version: BLOAD...sorry but I can't figure it out
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I searched other topics related to this but to no avail

I'm converting an old game of mine to FB when I came across this problem:
QBASIC code
Code:
' *****Load the sprites*****
REDIM SHARED sprites%(1 TO Ints)
DEF SEG = VARSEG(sprites%(1))
BLOAD FileName$, 0
eps% = 130
DEF SEG

I need to know how to get it to work without the DEF SEG. I removed it and tried this:

Code:
BLOAD FileName$, sprites%(1)
But it didn't like that. I checked the documentation on it and that didn't help either. Anyone know how to do this? Thanks in advance.
You were right to remove the DEF SEG, that is not needed nor understood by FB.
Apart from this, your code
Code:
BLOAD FileName$, sprites%(1)
should become
Code:
BLOAD FileName$, VARPTR(sprites%(1))
With this further change it should work.
Thanks! Big Grin
Just wanted to say I got the code to work.

Looking forward for the changes that will be in version 0.12