GLBasic forum

Main forum => GLBasic - en => Topic started by: djtoon on 2011-Dec-20

Title: savebmp path
Post by: djtoon on 2011-Dec-20
why isnt this saving on the path i wanted:

PRINT frameCounter,0,0,0
LOCAL path$="D:/frame"+frameCounter+".bmp"
SAVEBMP path$
Title: Re: savebmp path
Post by: Ian Price on 2011-Dec-20
Have you used - SETCURRENTDIR("Media") at the start of your code? Maybe that's affecting the final destination?
Title: Re: savebmp path
Post by: Slydog on 2011-Dec-20
Maybe you need two "/" characters in your string?:
Code (glbasic) Select
LOCAL path$="D://frame"+frameCounter+".bmp"

[Edit] Maybe not, I checked my code and I didn't have duplicate "/" anywhere I could find.

You could try to see if it's the 'frameCounter' variable causing the problem with:
Code (glbasic) Select
LOCAL path$="D:/frame001.bmp"

Or, try "\\" instead of "/" in the path?
Title: Re: savebmp path
Post by: Kitty Hello on 2011-Dec-21
DJ - it's saving to "D:\frame123.bmp" - is that what you want? Or "D:\fame\123.bmp"?

The "/" (forward slash) is the right (and only valid) directory separator in GLBasic.
I hope it's not SAVEBMP that's faulty.
Title: Re: savebmp path
Post by: djtoon on 2011-Dec-21
thank you
Title: Re: savebmp path
Post by: MrTAToad on 2011-Dec-22
Some pathing results from PLATFORMINFO$ use "\" on Windows instead of "/"
Title: Re: savebmp path
Post by: Kitty Hello on 2011-Dec-22
oh bad! I'll fix that.