BBC BASIC for Windows
« Filename capture from openin("") »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:58pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Filename capture from openin("")  (Read 526 times)
Richard Lumb
Guest
xx Filename capture from openin("")
« Thread started 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.
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Filename capture from openin("")
« Reply #1 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.
User IP Logged

Richard L
Guest
xx Re: Filename capture from openin("")
« Reply #2 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.
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