Пример #1
0
        public String read_record()
        {
            String Record = new string(' ', 200);
            int    err    = oCustomer.dsReadRec(channel, sKey, 0, ref Record);

            if (err != -1)
            {
                if (err == 11)
                {
                    return("");
                }
                else
                {
                    MessageBox.Show(err.ToString());
                    return("");
                }
            }
            return(Record);
        }
Пример #2
0
        public String read_record()
        {
            String Record = new string(' ', 200);
            int    err    = oFile.dsReadRec(channel, sKey, 0, ref Record);

            if (err != -1)
            {
                if (err == 11)
                {
                    return("");
                }
                else
                {
                    this.Error = err.ToString();
                    return("");
                }
            }
            return(Record);
        }