public static int CBNToString(byte[] trecord, int start, int length, out string s) /* Convert Hollerith Column Binary format to string */ { /* return: number of invalid Hollerith codes */ int err; err = CBNToBCD(trecord, start, length, out byte[] bcd); s = BcdConverter.BcdToString(bcd); return(err); }
public static void StringToCBN(string s, int start, byte[] trecord) /* Convert string zu Hollerith Column Binary */ { BCDToCBN(BcdConverter.StringToBcd(s), start, trecord); }