Save a particular location on an application

Just starting out? Need help? Post your questions and find answers here.
Lurokus
New User
New User
Posts: 5
Joined: Tue Nov 02, 2004 7:39 am
Location: Australia
Contact:

Save a particular location on an application

Post by Lurokus »

Hi im currently designing an application...

I want to know how to load a file from some other locaiton which can be chosen, but when i load it. it saves the file location onto a Menu.

Is this possible?

Can anyone help me?

Thanks in Advance

-Lurokus-
-All your base are belong to us-

I Came! I Saw! I Conquered!
LarsG
Enthusiast
Enthusiast
Posts: 713
Joined: Mon Jun 02, 2003 1:06 pm
Location: Norway
Contact:

Post by LarsG »

Hi, and welcome..

This might help you abit:

Code: Select all

a$ = OpenFileRequester("Title","","*.*",0) 
If a$ <> ""
  Debug GetPathPart(a$)
Else
  Debug "Cancelled"
EndIf
Getting the debug string onto a Menu shouldn't much harder..
Why don't you try it, and see if you can get it to work?!? :)

AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
Lurokus
New User
New User
Posts: 5
Joined: Tue Nov 02, 2004 7:39 am
Location: Australia
Contact:

Post by Lurokus »

Okay works... Thanks!!

what about this...

When I Close it. It saves this information so when i reopen it i can run the location without having to select it.
-All your base are belong to us-

I Came! I Saw! I Conquered!
carolight
User
User
Posts: 41
Joined: Mon Feb 09, 2004 11:08 am
Location: Gold Coast, Australia

Post by carolight »

Can you use a Preference file? These are like .ini files, and are really easy to save into and read.
Lurokus
New User
New User
Posts: 5
Joined: Tue Nov 02, 2004 7:39 am
Location: Australia
Contact:

Post by Lurokus »

okay lol.

how do i do that??
-All your base are belong to us-

I Came! I Saw! I Conquered!
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

read the help file...

(ever tried pressing F1?)
OpenPreferences()
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply