We should not create codeblocks within a loop using the loop variable directly or another variable derived from the loop variable.
When this is required, we need to create the codeblock inside another function.
This is one way of doing it.
When this is required, we need to create the codeblock inside another function.
This is one way of doing it.
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 nilRegards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India