BBC BASIC for Windows
Programming >> BBC BASIC language >> Filename capture from openin("")
http://bb4w.conforums.com/index.cgi?board=language&action=display&num=1260286700

Filename capture from openin("")
Post by Richard Lumb on Dec 8th, 2009, 2:38pm

I have been trawling around help files to find a way to grab the filename when a file is opened for input using the wildcard openin("") function.
Is there a system variable or memory location I can retrive this information from?
I need to place this file name in a Listbox window
Thanks in advance.
Re: Filename capture from openin("")
Post by admin on Dec 8th, 2009, 3:00pm

Quote:
I have been trawling around help files to find a way to grab the filename when a file is opened for input using the wildcard openin("") function.
Is there a system variable or memory location I can retrive this information from?

Yes, this came up quite recently:

http://tech.groups.yahoo.com/group/bb4w/message/11561

This is very much an 'at your own risk' method. Really you should be displaying the file selector yourself using the code in the manual:

http://www.bbcbasic.co.uk/bbcwin/manual/bbcwine.html#opensave

Doing it 'properly' gives you much more control, such as being able to set the title etc.

Richard.
Re: Filename capture from openin("")
Post by Richard L on Dec 8th, 2009, 3:04pm

OLD **Noobie**
DOH!!
I wasnt sure how to edit my last post but,
I just found the answer in the general area, creating a data structure to use for the job.
I thought this was just a complex way of opening/saving a file with a known name.