Compund open statement

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Fangbeast.

if I use the following compound statement and I don't load the default file, is there any way to retrieve the filename loaded??


If ReadFile(0, OpenFileRequester("Load Data File", "C:\Home Inventory\Data\Inventory.in3", "Inventory Load File | *.in3", 0))


Fangles
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fweil.

Hi,

Easiest way should be to make something like :

FileName = OpenFileRequester ...
if ReadFile(....

Otherwise you will have some difficulties to now what FileName was !



Francois Weil
14, rue Douer
F64100 Bayonne
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Fangbeast.
Hi,

Easiest way should be to make something like :

FileName = OpenFileRequester ...
if ReadFile(....

Otherwise you will have some difficulties to now what FileName was !



Francois Weil
14, rue Douer
F64100 Bayonne
I know that's the easiest way but the compound statement is more elegant (grin). Oh well, might bite the bullet and reverse engineer some of my code to do it the longer way.

By the way, did you ever get my email? Not that it matters, PB solved my problem but I was just curious.

Fangles
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fweil.

I did not receive anything from you ...

Did you use [url]mailto:fw@nasca.fr[/url] ?

Francois Weil
14, rue Douer
F64100 Bayonne
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Fangbeast.
I did not receive anything from you ...

Did you use [url]mailto:fw@nasca.fr[/url] ?

Francois Weil
14, rue Douer
F64100 Bayonne
Yes, I sure did. Just checked my sent mailbox to see if that was right and it was. Oh well.

Fangles
Post Reply