ADO WillChangeRecordset နှင့် RecordsetChangeComplete Events
❮ ပြီးပြည့်စုံသော Recordset Object ရည်ညွှန်းချက်
WillChangeRecordset ဖြစ်ရပ်
လုပ်ဆောင်ချက်တစ်ခုမှ Recordset ကိုမပြောင်းလဲမီ WillChangeRecordset ဖြစ်ရပ်ကို အစပျိုးသည်။
မှတ်ချက်- ဤဖြစ်ရပ် မပြန်မီတွင်၊ ဤဖြစ်ရပ်ကို ဖြစ်စေသော လုပ်ဆောင်ချက်ကို ပယ်ဖျက်ရန် သို့မဟုတ် နောက်ဆက်တွဲ အကြောင်းကြားချက်များကို တားဆီးရန် adStatusUnwantedEvent တွင် အခြေအနေ ကန့်သတ်ချက်ကို သတ်မှတ်ပါ။
RecordsetChangeComplete ဖြစ်ရပ်
RecordsetChangeComplete ဖြစ်ရပ်သည် Recordset ကိုပြောင်းလဲပြီးနောက် အစပျိုးသည်။
မှတ်ချက်- ဤအစီအစဉ်မပြန်မီတွင်၊ နောက်ဆက်တွဲသတိပေးချက်များကိုတားဆီးရန် အခြေအနေသတ်မှတ်ချက်ဘောင်ကို adStatusUnwantedEvent သို့သတ်မှတ်ပါ။
မှတ်ချက် ။
အထားအသို
WillChangeRecord reason,status,objRs
RecordsetChangeComplete reason,objErr,status,objRs
Parameter | Description |
---|---|
reason | An EventReasonEnum value that specifies the reason for this event |
status | An EventStatusEnum value that indicates the status of the execution of the event |
objErr | The name of an Error object that describes the error if status is set to adStatusErrorsOccurred, otherwise it is not set |
objRs | The name of the Recordset object that triggered this event |
EventReasonEnum တန်ဖိုးများ
Constant | Value | Description |
---|---|---|
adRsnRequery | 7 | An operation requeried the Recordset |
adRsnResynch | 8 | An operation resynchronized the Recordset with the database |
adRsnClose | 9 | An operation closed the Recordset |
EventStatusEnum တန်ဖိုးများ
Constant | Value | Description |
---|---|---|
adStatusOK | 1 | The operation that caused the event was successful |
adStatusErrorsOccurred | 2 | The operation that caused the event failed |
adStatusCantDeny | 3 | The operation that caused the event cannot be cancelled |
adStatusCancel | 4 | The operation that caused the event is cancelled |
adStatusUnwantedEvent | 5 | Prevents subsequent notifications before the event method has finished executing |
❮ ပြီးပြည့်စုံသော Recordset Object ရည်ညွှန်းချက်