Because Length() returns bytes count. Have lazarus conventional function to calculate chars count in string, that do it independently from its binary representation ? "Length() div 2" is not conventional nor portable.
_______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
