[fpc-pascal] Weird DosError values

xhajt03 at vol.cz xhajt03 at vol.cz
Tue Feb 17 11:11:21 CET 2004

From:        "Matthews" <dematthews at uwaterloo.ca>
To:          fpc-pascal at lists.freepascal.org
Sujbect:     [fpc-pascal] Weird DosError values
Date sent:   Mon, 16 Feb 2004 18:06:13 -0500

Hello Lukas

> I'm using a function and a procedure, both which deal
> with finding files in 
> the same directory, and then either counting them, or
> reading them, but I'm 
> getting some very weird values for DosError.  I'm using
> v1.0.10, and I 
> continue to get a value of 183 from DosError in the

We'd probably need little bit more information from you. First of
all, your code snippet isn't directly compilable as it is now -
it isn't even completely clear which FindFirst function is being
used (my guess is that one from SysUtils because of the
TSearchRec type used, but on the other hand you're using DosError
as well, which is relevant to FindFirst from unit Dos). Second,
it would be definitely useful to know the target you're compiling
for (GO32v2?, ???) and the operating system you're running on.

Regarding your code - well, I'd definitely suggest to use
something like while..do or repeat..until instead of your use of
goto construct.

Best regards


VOLNY klub: Modemisti vseho druhu, spojte se!

More information about the fpc-pascal mailing list