Re: OpenDialog



Hans-Peter Diettrich wrote:
Stark schrieb:

I want my user to choose a file in a folder among those staring with some characters in their name. I do this using the filter property. This does not avoid the user entering a totally different filename in the filename edit. How can I avoid this ?

This is what ofFileMustExist in the dialog options does for you.

That only means the file must exist. It doesn't say the file must match a certain pattern. You're always free to type the name of whatever file you want.

--
Rob
.



Relevant Pages

  • Re: OpenDialog
    ... This does not avoid the user entering a totally different filename in the filename edit. ...
    (comp.lang.pascal.delphi.misc)
  • Re: OpenDialog
    ... I do this using the filter property. ... This does not avoid the user entering a totally different filename in the filename edit. ...
    (comp.lang.pascal.delphi.misc)
  • Re: OpenDialog
    ... I do this using the filter property. ... This does not avoid the user entering a totally different filename in the filename edit. ...
    (comp.lang.pascal.delphi.misc)
  • Re: Unable opening a file, when filename + path are very long
    ... The only thing to avoid this is, teach your users to save the content in the file and not in the name of the file. ... But still with shorter names you came in trouble, ... After I renamed the filename to something shorter, ... I assume this has something to do with a bad namingpolicy an more ...
    (microsoft.public.win2000.security)
  • Re: download counter?
    ... create table counter (filename varchar(100), ... Better then redirecting is to read file in php script, send to browser and write to sql table after a file is complete send. ... This avoid a situation when user cancel download. ...
    (comp.lang.php)