[fpc-pascal] findfirst wildcards...
bartjunk64 at gmail.com
Wed Dec 3 21:27:21 CET 2014
On 12/3/14, Ralf Quint <freedos.la at gmail.com> wrote:
> On any DOS based OS (that includes OS/2 and Windows), the "?" wildcard
> character will find any character, including no character at all in that
> position. So in your example, t?.txt will find t.txt and tx.txt but not
> txy.txt. It will not return any filename longer than your search mask,
> but return shorter filenames. This is (should be) a functionality of the
> underlying system calls.
Windows.FindFirstFile however treats ? as exactly 1 character AFAIK.
And is I'm not mistake this was also the case with TP in the old days.
More information about the fpc-pascal