Hi
And thanks to all for reply
This funciion is working good
BUT- Code: Select all Expand view
FUNCTION MyBinaryConversion( cData )
local cVrati := ""
local cChar := ""
local nAsc := 0
local i := 0
IF !IsBinaryData( cData )
return cData
ENDIF
FOR i = 1 TO LEN( cData )
cChar := SUBSTR( cData, i, 1 )
nAsc := ASC( cChar )
IF nAsc < 32 .AND. ;
nAsc <> 9 .AND. nAsc<> 10 .AND. nAsc<> 13 .AND. nAsc<> 26
cVrati := cVrati + CHR( 127 )
ELSE
cVrati := cVrati + cChar
ENDIF
NEXT
RETURN cVrati
BUT I HAVE OTHER PROBLEMThe database i use (.DBF) is created by SQL SELECT statement and i dont know the fieldnames ... (columns names)
I have try this code:
- Code: Select all Expand view
FOR i := 1 TO Fcount()
IF !Empty( oCol := oBrw:oCol( oBrw:oCol(i):cHeader ) )
IF FieldType( i ) == "M" .OR. ;
FieldType( i ) == "C"
oCol:bStrData := { || MyBinaryConversion( EVAL(oCol:bEditValue) ) }
ENDIF
ENDIF
NEXT
But in XBROWSE i have the same data in all columns (data from the last column)
Probably becouse at the end of FOR,NEXT ciclusulse
'i' have value of Fcount() and EVAL(oCol:bEditValue) return value of last column for all columns.
I cant use the stagement like this:
oBrw:Notes:bStrData := { || MyBinaryConversion( Eval( oBrw:Notes:bEditValue ) ) }becouse like i said i dont know the column names.
I have try this:
- Code: Select all Expand view
FOR i := 1 TO Fcount()
IF !Empty( oCol := oBrw:oCol( oBrw:oCol(i):cHeader ) )
IF FieldType( i ) == "M" .OR. ;
FieldType( i ) == "C"
cField := oBrw:oCol(i):cHeader
oBrw:oCol(cField):bStrData := { || MyBinaryConversion(EVAL(oBrw:oCol(cField):bEditValue)) }
ENDIF
ENDIF
NEXT
BUT THE SAME RESULTS all columns have the same value of the last columnI have no more solutions so
Please help
BEST best regards,