On Jan 19, 2008, at 2:48 PM, Ken Shmidheiser wrote: > Steve asked: > >> Hey Ken, >> >> While you are playing, whip up some code that scans a folder and >> puts the filenames in a CFIndex array :-) > > > > Steve, > > Your wish is my command. > > Ken > > Scan Folder Contents into CFIndex Thanks for the demos Ken. One or two comments here for everyone else since Ken already knows. 1) Global vars cannot be used in a local FN with a "clear local mode" header, so global var usage in FN IterateFolder is DOA. 2) See prior list thread on Iterate Folder for RP's suggestions using malloc and free instead of NewPtr and DisposePtr 3) See the section of the FBtoC manual regarding "adapting your code...." and the discussion of FSCatalogInfo. It applies in this situation too. BTW: the FBtoC team tries to post code that is FBtoC compatible when time permits, and I would encourage everyone to do the same since that is our direction. thanks!! Brian S.