Talk:Recursive filesearch

From Freepascal Amiga wiki
Revision as of 10:08, 17 August 2014 by Alb42 (talk | contribs) (? Operator has a 1:1 replacement in Pascal)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Hint "?" Operator does not exist but there is a replacement:

if (ap^.ap_Info.fib_DirEntryType < 0) then 
begin 
  s := '';  
end else
  s := 'Dir';

one could write: if for strings need Unit StrUtils, for number need unit Math

s := IfThen(ap^.ap_Info.fib_DirEntryType < 0, '', 'Dir')

Freepascal aros porter (talk) 11:08, 17 August 2014 (CEST)