Maurice Lombardi wrote:
PS:
A := B = C; is correct in Pascal, weird but correct.
Indeed. This is not even a question of operator precedence, since in contrast to C, the assignment in Pascal (":=") is not an operator. In fact, the syntax for an assignment statement is: assignment-statement = ( variable-access | function-identifier ) `:=' expression . And since neither variable-access nor function-identifier or expression can contain a ":=" token, there cannot be any ambiguity without parentheses. It may look strange if you mentally consider ":=" as a kind of "=", since an expression like "a = b = c" is indeed invalid in Pascal. That's why some might prefer to put in the parentheses. I myself don't, just like I don't add unnecessary parentheses, e.g., in "if" statements such as "if a = b then ..." (in contrast to "if (a = b) and (c = d) then ..." where they're required). @Luis Rivera: If the replies so far didn't help you, you might describe what you actually want to achieve, so we can help you better. If you're just looking for any example using FindFiles, you can look at findfilesdemo.pas under demos. Frank -- Frank Heckenbach, f.heckenbach@fh-soft.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8