E r g e b n i s / R e s u l t
The routine shows the file open dialog and returns the name of the selected file.
B e s c h r e i b u n g / D e s c r i p t i o n
GET_FN is an interface to the OpenAccess internal File-Open dialog.
It displays a window that asks the user for a filename and offers a file selector dialog via F4. The available files in the list are filtered by the search mask given in msk.
S y n t a x
Code:
filename = call ('GET_FN' , msk) P a r a m e t e r
msk - The search mask for the files the user can select, i.e. *.TXT or *.*
R e t u r n s
The full filename the user selected (i.e. MAIN:FILE.TXT) or an empty string, if the user cancelled.
B e i s p i e l / E x a m p l e
Code:
attach 'FILENAME'
put call ('GET_FN' , '*.TXT') ! Shows the filename of the file the user entered
detach 'FILENAME'