[futurebasic] Re: [FB] NavGetFileDialog file type filter

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

From: Robert Purves <robert.purves@...>
Date: Wed, 1 Jun 2005 12:23:20 +1200
Bernie wrote:

> The reason I make a local copy of the AE is I get a "Can't use a  
> register variable..." on compile.

Just use # to pass the incoming pointer (theItem as ^AEDesc) to  
AECoerceDesc and AEGetDescData:

err = fn AECoerceDesc( #theItem, _typeFSRef, #theItem )
long if ( fn AEGetDescData( #theItem, @ref, sizeof(FSRef) ) == _noErr )

Robert P.