[futurebasic] fn DataBrowserChangeAttributes

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2010 : Group Archive : Group : All Groups

From: Jay Reeve <jayreeve@...>
Date: Sat, 20 Feb 2010 18:46:00 -0600
The definition of this fn is:
> toolbox fn DataBrowserChangeAttributes( ControlRef inDataBrowser,  
> OptionBits inAttributesToSet, OptionBits inAttributesToClear ) =  
> OSStatus// AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER


I'm attempting to employ it in this fn:
> local fn SetProperties( browser as ControlRef ) as OSStatus
> '~'1
> dim as OptionBits toSet, toClr
> toSet  = _kDataBrowserAttributeListViewAlternatingRowColors ¬
>        + _kDataBrowserAttributeListViewDrawColumnDividers
> toClr  = _kDataBrowserAttributeNone
> end fn = DataBrowserChangeAttributes( browser, toSet, toClr )


FBtoC gives me these errors:

> Error:•• Bad factor in expression in line 61 of Browser.incl:  
> 'DataBrowserChangeAttributes'
>  61:  end fn = DataBrowserChangeAttributes( browser, toSet, toClr )
>                                            ^
> Error:•• Arithmetic expression expected in line 61 of Browser.incl
>  61:  end fn = DataBrowserChangeAttributes( browser, toSet, toClr )
>                                            ^


I don't have a clue what to change. Help!

   e-e
   =J= a  y
    "

OS10.4.11 FB 5.4.4 FBtoC 1.4.4