Re: OpenDialog



And typing wahtever you want cannot be avoided, I think. I would like to give the user less opportunity to make mistakes, forcing him to choose among the valid datasets only...

"Rob Kennedy" <me3@xxxxxxxxxxx> ha scritto nel messaggio news:6m1vuvFeo0opU2@xxxxxxxxxxxxxxxxxxxxx
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: BLINK - a brief book review
    ... ## certain way and dropping your opponent with trained reactions rather than ... ## against mistakes. ... One achievable option is to avoid "Condition White" - ... She ended up with a broken arm, a fast trip to the ...
    (rec.guns)
  • Re: PC Speech Recognition Apps on a Mac, Pros and Cons
    ... Semantic technologies are based on models that explicitly encode the meaning of information to avoid ambiguity and support automated reasoning. ... There is no practical way to avoid such mistakes. ...
    (comp.sys.mac.system)
  • Re: adapting getline
    ... the Grave Hand of kid joe Did Inscribe: ... I would avoid this sort of thing - don't put arbitrary limits in your ... char *buf = NULL; ... Mistakes are a part of being human. ...
    (comp.lang.c)
  • Re: Remodeling Reminders
    ... What are Remodeling Reminders people should know before Remodeling? ... Helping people know what mistakes to avoid and common reminders we ... spam and nobody wants to read it. ...
    (alt.home.repair)
  • Re: Separate releases: Delphi 10 Win32 / Delphi 10 .Net
    ... If you feel safe using pointers instead of other programming methods, ... I am merely explaining why I try to avoid them where I can. ... > However, I do not equate using pointers with making mistakes, more ...
    (borland.public.delphi.non-technical)