XBROWSE <binary> problem

Re: XBROWSE <binary> problem

Postby nageswaragunupudi » Mon Jul 23, 2012 1: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: 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


 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: XBROWSE <binary> problem

Postby avista » Thu Jul 26, 2012 7:08 am

Hi,
Rao THANKS,

Best regards,
User avatar
avista
 
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 52 guests