Example #1
0
        public override bool SetString(int nRow, int nCol, string value)
        {
            if (nRow >= 0 && nRow < mnRow)
            {
                if (!mhtRecordVec.ContainsKey(nRow))
                {
                    AddRow(nRow);
                }
                AFIDataList valueList = (AFIDataList)mhtRecordVec[nRow];
                if (valueList.GetType(nCol) == AFIDataList.VARIANT_TYPE.VTYPE_STRING)
                {
                    if (valueList.StringVal(nCol) != value)
                    {
                        AFCDataList oldValue = new AFCDataList();
                        oldValue.AddString(valueList.StringVal(nCol));

                        valueList.SetString(nCol, value);

                        AFCDataList newValue = new AFCDataList();
                        newValue.AddString(valueList.StringVal(nCol));

                        if (null != doHandleDel)
                        {
                            doHandleDel(mSelf, mstrRecordName, eRecordOptype.Updata, nRow, nCol, oldValue, newValue);
                        }
                    }
                }

                return(true);
            }

            return(false);
        }