ADO WillMove နှင့် MoveComplete ပွဲများ
❮ ပြီးပြည့်စုံသော Recordset Object ရည်ညွှန်းချက်
WillMove ပွဲ
လုပ်ဆောင်ချက်တစ်ခုသည် Recordset ရှိ လက်ရှိအနေအထားကို မပြောင်းလဲမီ WillMove ဖြစ်ရပ်ကို အစပျိုးသည်။
မှတ်ချက်- ဤဖြစ်ရပ် မပြန်မီတွင်၊ ဤဖြစ်ရပ်ကို ဖြစ်ပွားစေသော လုပ်ဆောင်ချက်ကို ပယ်ဖျက်ရန် သို့မဟုတ် နောက်ဆက်တွဲသတိပေးချက်များကို တားဆီးရန်အတွက် adStatusUnwantedEvent တွင် အခြေအနေသတ်မှတ်ချက်ဘောင်ကို သတ်မှတ်ပါ။
MoveComplete ပွဲ
Recordset ရှိ လက်ရှိအနေအထားကို ပြောင်းလဲပြီးနောက် MoveComplete ဖြစ်ရပ်ကို အစပျိုးသည်။
မှတ်ချက်- ဤအစီအစဉ်မပြန်မီတွင်၊ နောက်ဆက်တွဲသတိပေးချက်များကိုတားဆီးရန် အခြေအနေသတ်မှတ်ချက်ဘောင်ကို adStatusUnwantedEvent သို့သတ်မှတ်ပါ။
မှတ်ချက်- WillMove အစီအစဉ် သို့မဟုတ် MoveComplete ဖြစ်ရပ်သည် အောက်ပါ Recordset နည်းလမ်းများထဲမှ တစ်ခုကို ခေါ်ဆိုသောအခါ ဖြစ်ပွားနိုင်သည်- Open၊ Move၊ MoveFirst၊ MoveLast၊ MoveNext၊ MovePrevious၊ AddNew နှင့် တောင်းဆိုချက်။ ဤဖြစ်ရပ်များသည် အောက်ပါဂုဏ်သတ္တိများကြောင့်လည်း ဖြစ်တတ်သည်- Filter၊ Index၊ Bookmark၊ AbsolutePage နှင့် AbsolutePosition။
အထားအသို
WillMove reason,status,objRs
MoveComplete 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 |
adRsnMove | 10 | An operation moved the record pointer within the Recordset |
adRsnMoveFirst | 12 | An operation moved the record pointer to the first record in the Recordset |
adRsnMoveNext | 13 | An operation moved the record pointer to the next record in the Recordset |
adRsnMovePrevious | 14 | An operation moved the record pointer to the previous record in the Recordset |
adRsnMoveLast | 15 | An operation moved the record pointer to the last record in 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 ရည်ညွှန်းချက်