示例#1
0
        public DbfMemo CreateMemo(string path)
        {
            DbfMemo memo;

            if (Header.IsFoxPro)
            {
                memo = new DbfMemoFoxPro(path, CurrentEncoding);
            }
            else
            {
                if (Header.Version == 0x83)
                {
                    memo = new DbfMemoDbase3(path, CurrentEncoding);
                }
                else
                {
                    memo = new DbfMemoDbase4(path, CurrentEncoding);
                }
            }

            return(memo);
        }
示例#2
0
        public DbfMemo CreateMemo(Stream memoStream)
        {
            DbfMemo memo;

            if (Header.IsFoxPro)
            {
                memo = new DbfMemoFoxPro(memoStream, CurrentEncoding);
            }
            else
            {
                if (Header.Version == 0x83)
                {
                    memo = new DbfMemoDbase3(memoStream, CurrentEncoding);
                }
                else
                {
                    memo = new DbfMemoDbase4(memoStream, CurrentEncoding);
                }
            }

            return(memo);
        }