Mel: Try clearing the FName$ itself every time you stuff it into the parameter block. I just had a problem with a similar thing and clearing the name turned out to be the solution. Don't know if this will work in both worlds or not, though. Mark Mel Patrick wrote: > The following function can't seem to count the filenames in a folder > the way 68K mode can. All I get is a zero count. Anyone have a > solution that works in both worlds without the programmer having to > remember if the generated code is going to be 68K or PPC?