When this is required, we need to create the codeblock inside another function.
This is one way of doing it.
- Code: Select all Expand view
for each oCol in oBrw:aCols
CheckBinary( oCol )
next
< other code >
return nil
//------------------
static func CheckBinary( oCol )
if oCol:cDataType == 'C' .or. ;
oCol:cDataType == 'M' .or. ;
Eval( oCol:bEditValue ) == 'C'
oCol:bStrData := { || MyFunc( Eval( oCol:bEditValue ) ) }
endif
return nil