E r g e b n i s / R e s u l t
Display the OAIII (search order) directory
B e s c h r e i b u n g / D e s c r i p t i o n
This function displays the OAIII (search order) directory
S y n t a x
Code:
thefile = call("showdir",fileext,allow) P a r a m e t e r
fileext - list of allowable file extensions
This parameter has the format: .ext,.ext,.ext ...
The fullstop must be included and each file extension must be separated by a comma.
allow - ALLOW Copy, Delete, or Rename when the directory is displayed?
'Yes' = allow Copy, Delete, and Rename.
'No' = Don't allow Copy, Delete, and Rename.
R e t u r n s
The selected file or a string of zero length if the user aborted.
B e i s p i e l / E x a m p l e
Code:
attach "filecomp.oac"
put do clear screen
fileext = '.txt,.df'
thefile = ''
thefile = call("showdir",fileext,'No')
if length(thefile) > 0
put at 10,10 'The File chosen is: ', thefile
else
put at 10,10 'NO FILE CHOSEN'
end if
ok = false
get ok
detach "filecomp.oac"