it seems to me that
IsBinaryData() is not working well.
I also see that it is substituted in xBrowse with c function.
What IsBinaryData() should we use in mod Harbour?
Best regards,
Otto
- Code: Select all Expand view RUN
- function main
local aTage := {}
local aVerfuegbarkeit := {}
local I := 0
local aHead := { "COL", "COL","COL","COL","COL"}
AADD( aTage, "Kategorie")
FOR nIdx := 1 to 3
AADD( aTage, str( nIdx ) )
NEXT
? MH_ArrayToHTML( aTage, aHead, .t. )
AADD( aVerfuegbarkeit, aTage )
AADD( aVerfuegbarkeit, aTage )
AADD( aVerfuegbarkeit, aTage )
? len( aVerfuegbarkeit )
FOR I := 1 to len(aVerfuegbarkeit)
? aVerfuegbarkeit[I,1]
NEXT
? MH_ArrayToHTML( aVerfuegbarkeit, aHead , .t. )
return
#include "c:\www\htdocs\hrbSamples\MHFNGNR1.PRG" )
- Code: Select all Expand view RUN
static function IsBinaryData( cData, nLen )
local c, n, lBinary := .f.
? "============================IsBinaryData"
? "VALUE : " + cData
if nLen == nil
nLen := Min( 50, Len( cData ) )
endif
for n := 1 to nLen
c := SubStr( cData, n, 1 )
? c
? "for/next" + c
if ( c < ' ' .and. !( c $ Chr( 9 ) + Chr( 10 ) + Chr( 12 ) + Chr( 13 ) + Chr(26) ) )
? str( ASC(c) )
? c + "exit"
lBinary := .t.
exit
endif
next
? "============================IsBinaryData ende "
return lBinary
//----------------------------------------------------------------------------//