I have several files Car11.xlsx, Car75.xlsx, Car8456.xlsx and so on ...
After I OPENUP a file with a name containing a wildcard (Car*.xlsx as shown in the snippet) the dialogue opens and I choose one of the files. From that point on I need to know the filename in the rest of my program (even if the file handle allows me to access the file)
The following simple code snippet illustrates that the filename returned is still Car*.xlsx
I was hoping -naively- that FileName$ would be set to the actual filename selected in the dialogue.
Is there a way to make FN_Open_File return the filename selected?
Code: Select all
Name$ = FN_Open_File("C:\Users\Erik\Downloads\Car*.xlsx")
PRINT Name$
END
DEFFN_Open_File(FileName$)
A=OPENUP FileName$ CLOSE#A
=FileName$
Edja