>Does anyone know how this C function should be translated into FB > > >IconFamilyHandle NewIconFamilyHandle() >{ > IconFamilyHandle icns = (IconFamilyHandle) NewHandle( 8 ); > > if ( icns ) > { > ( **icns ).resourceType = kIconFamilyType; > ( **icns ).resourceSize = 8; > } > > return icns; >} > > >My FB translation fails: > > >local fn NewIconFamilyHandle > >dim as IconFamilyHandle icnsH > >icns = fn NewHandle( 8 ) >long if ( icnsH ) > (icnsH..nil ).resourceType = _kIconFamilyType > (icnsH..nil ).resourceSize = 8 >end if > >end fn = icnsH > > >Ken Ken: I think it's icnsH and not icns. icnsH = fn NewHandle( 8 ) tedd -- -------------------------------------------------------------------------------- http://sperling.com/