Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BSAVE / BLOAD
#11
Quote:
KiZ Wrote:EDIT: me looks at Z!re... size is optional? dammit. :shifty: all that brain work.
Actually, now you made me unsure.. someone better do a test :P

*looks around*

yeah... someone better test it. Z!re.
Reply
#12
Quote:
Z!re Wrote:
KiZ Wrote:EDIT: me looks at Z!re... size is optional? dammit. Confusedhifty: all that brain work.
Actually, now you made me unsure.. someone better do a test Tongue
*looks around*
yeah... someone better test it. Z!re.
I dun wanna
Reply
#13
Quote:
Code:
' SUB alts
alts:
IF MULTIKEY(31) AND MULTIKEY(56) THEN
    LOCATE 6, 1: COLOR 4: INPUT "SAVE Y/N"; sresponse$
    IF sresponse$ = "y" OR sresponse$ = "Y" THEN
        LOCATE 6, 1: COLOR 4: INPUT "Filename to SAVE as (no.bmp)"; sfilename$
        filename$ = sfilename$ + ".bmp"
        get(0,0)-(57,35),picture%
        BSAVE filename$, 0
    END IF
IF sresponse$ = "n" OR sresponse$ = "N" THEN RETURN
END IF
RETURN

' SUB altl
altl:
IF MULTIKEY(38) AND MULTIKEY(56) THEN
    LOCATE 6, 1: COLOR 4: INPUT "LOAD Y/N"; lresponse$
    IF lresponse$ = "y" OR lresponse$ = "Y" THEN
        LOCATE 6, 1: COLOR 4: INPUT "File to LOAD (no.bmp)"; lfilename$
        filename$ = lfilename$ + ".bmp"
        BLOAD filename$
    END IF
IF lresponse$ = "n" OR lresponse$ = "N" THEN RETURN
END IF
RETURN
That will fix the filename issue. Remember, when you put something inside quotes like you were doing, it's called a string literal.

As for your other issue...no clue. You're better off using GET and then saving the array as a binary file.

Thanks, well you solved my filename problem, I would have never thought of removing the quotes. But the line of code you posted KiZ

Code:
BSAVE "blarg.bmp" varptr(picture%(0)), (ubound(picture%) + 1) * 4

Just does not work, it sais iin error part of FB
Code:
Line | File | Error Nr | Message|
315   F:\...  1             Argument count mismatch, found: 'varptr'

So I am not sure what's wrong, but something is, by the way, picture% is the array the area to be saevd is stored in.
Reply
#14
@Z!re: It works without, I just tested.

@Axipher: I forgot the comma after "blarg.bmp"

It should be

BSAVE "blarg.bmp", varptr(array(0))

I removed the last part because Z!re and I figured it wasnt -required-.
Reply
#15
Quote:@Z!re: It works without, I just tested.

@Axipher: hangon a mo

And I have bad posting skills... Lol, joking, I'm sure you'll edit that post with the solution, or will you :???: :-? :o
Reply
#16
Ive edited now
Reply
#17
Thanks alot, I substitued "blarg.bmp" with filename$, entered you in the credits KiZ and NecrosIhsan, and now O\only two problems left in program, lines that are 2x zoomed versions of a normal one, and a color glitch which is of nothing to concern, just the line.
Reply
#18
Quote:I removed the last part because Z!re and I figured it wasnt -required-.
Cool =) *edits all code* Tongue
Reply
#19
Well I left it there, it saves fast and efficiently (spell check), and I'm too lazy to change it, but I'll post more posts :???:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)