FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XBROWSE <binary> problem
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBROWSE <binary> problem
Posted: Mon Jul 23, 2012 01:32 AM
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.

Code (fw): Select all Collapse
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
Regards



G. N. Rao.

Hyderabad, India
Posts: 301
Joined: Fri Jun 01, 2007 09:07 AM
Re: XBROWSE &lt;binary&gt; problem
Posted: Thu Jul 26, 2012 07:08 AM

Hi,
Rao THANKS,

Best regards,

Continue the discussion