I have just come across Hypernext and I am trying it out all is ok at the moment but I am trying to find a way of finding a file to open on the harddrive. This would be the equivalent of "openfiledialogue" in Visual Basic, also is there an equivalent to "savefiledialogue"?
Hello
Yes, there are a few commands for opening and saving files via a dialogue box. They are listed in Chapter 15 of the Language Reference PDF.
Note, all the commands return a file handle that can be used to actually read from the file or write to it.
They also return the file name, and for opening they also return a file details list that shows info about the file.
(1) For opening a file there is the FileAsk and FileAskFilter commands
FileAsk:-
Presents a dialog box allowing the user to choose a file which already exists.
FileAsk(fname,fhandle,fdetails)
FileAskFilter:-Presents a dialog box allowing the user to choose a file which already exists and has the specified file type. If the filter parameter is empty then all files are shown.
FileAskFilter(fname,filter,fhandle,fdetails)
Eg, filter might be = ‘HNapp’ etc
(2) For saving a file via a dialogue box
FileNew:-
Presents a dialog box allowing the user to choose the name and location of where a new file should be placed. This does not create the file but returns a handle and details about the potential file.
FileNew(fname,fhandle,fdetails)
I hope this makes sense compared to VB.
Malkom