Przemek: FWIW, I tested with xHarbour with ads 8.1, 9.0 and 9.1 dlls and it does not add an extra dummy char. I changed the field length to 40 and it still worked as expected.
Regards,
It seems to be ACE bug. Not Harbour. Here is reduced example: REQUEST ADS proc main() adsSetServerType( 1 ) rddSetDefault( "ADS" ) dbCreate( "test.dbf", { { "F", "C", 24, 0 } } ) USE test while lastrec() < 10 dbappend() field->F := repl( "1234567890", 10 ) enddo dbgotop() browse() For filed F shorted then 24 bytes AdsGetField() returns correct results but for longer it adds dummy char at the end. It should be reported to Extended System. Meanwhile I can add workaround and cut the filed to maximum size reported by table structure info but such hack will badly damage values if ADS introduce compressed fields which can be longer.
-- Luis Krause Mantilla lkrausem at shaw dot ca luis_krause at hotmail dot com "May the Source be with GNU" _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour