[futurebasic] Re: [FB] scan folder for file contents

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2005 : Group Archive : Group : All Groups

From: Steve Crossman <steve@...>
Date: Sat, 8 Jan 2005 10:44:07 -0500
Alain,
	Thanks for the info.  Running some of these examples produces 
duplicate def fn and redimmed globals.
	
	If I REM out the gFBDummyGlobal and the FN FSpMakeFSRef I can get 
ScanFolder FSRef to run. Similar type errors are occurring with other 
examples.

Error: Variable 'GFBDUMMYGLOBAL' Re-Defined here!
in file Temp Project:RNTM COMPLETION.INCL at line 14 in Main Program
•dim gFBDummyGlobal•;0

Error: Attempt to resize existing variable!
in file Temp Project:RNTM COMPLETION.INCL at line 14 in Main Program
•dim gFBDummyGlobal;•0

Error: Duplicate Toolbox Def 'FSPMAKEFSREF'
in file Temp Project at line 131 in Main Program
•toolbox fn FSpMakeFSRef•( const FSSpec * source, FSRef * newRef) = 
OSErr `0x303C, 0x041A, 0xAA52

On Jan 8, 2005, at 2:37 AM, Alain Pastor wrote:

> Steve Crossman a écrit :
>> Can anyone reference code on the example fb^4 CD that will scan a 
>> folder and return the filenames ?
>
> Steve,
>
> In Files/Volumes folder there are a few examples which showcase three 
> methods for scanning folders using FB USR ScanFolder, Toolbox 
> PBGetCatInfoSync and the more modern FSRef:
>
> USR ScanFolder
> USR ScanFolder (recursive)
> Process folder in App folder 1 (using the outdated wdref)
> Process folder in App folder 2 (using FSSpec)
> ScanFolder FSRef
> ScanFolder FSRef recursive
>
> Alain
>
> --
>