LB Booster
« Store and une a filename in a variable »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 05:01am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Store and une a filename in a variable  (Read 164 times)
flotulopex
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 94
xx Re: Store and une a filename in a variable
« Reply #2 on: Jun 19th, 2017, 09:50am »

I had to do it this way:

Code:
...
[MAIN_REFRESH]
   UNLOADBMP "BackgroundImage"
   LOADBMP ".\" + ImageFile$ + ".bmp"
   #MainWindow.GBx1 "down"
   #MainWindow.GBx1 "drawbmp BackgroundImage 0 0"
   WAIT

...
[MouseLeftButton]
   IF (MouseX > 1685 AND MouseX < 1770) THEN    'Aucune
      IF (MouseY > 1055 AND MouseY < 1069) THEN
         ImageFile$ = "Aucune"
         GOTO [MAIN_REFRESH]
      END IF
   END IF 
User IP Logged

Roger
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Store and une a filename in a variable
« Reply #3 on: Jun 19th, 2017, 1:35pm »

on Jun 19th, 2017, 09:50am, flotulopex wrote:
I had to do it this way

I'm not too sure what point you are making. The leading ".\" to the file specification doesn't achieve anything ('dot' is the current directory anyway); you would probably be better to use DefaultDir$ like this:

Code:
LOADBMP "BackgroundImage", DefaultDir$ + "\" + ImageName$ + ".bmp" 

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »


This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls