ADO WillChangeField နှင့် FieldChangeComplete Events
❮ ပြီးပြည့်စုံသော Recordset Object ရည်ညွှန်းချက်
WillChangeField ပွဲ
တစ်ခု သို့မဟုတ် တစ်ခုထက်ပိုသော Field Object များ၏ တန်ဖိုးများ မပြောင်းလဲမီ WillChangeField ဖြစ်ရပ်ကို အစပျိုးသည်။
မှတ်ချက်- ဤဖြစ်ရပ် မပြန်မီ၊ ဤဖြစ်ရပ်ကို ဖြစ်ပေါ်စေသည့် လုပ်ဆောင်ချက်ကို ပယ်ဖျက်ရန် အခြေအနေ ကန့်သတ်ချက်ကို adStatusCancel တွင် သတ်မှတ်ပါ။
FieldChangeComplete ဖြစ်ရပ်
တစ်ခု သို့မဟုတ် တစ်ခုထက်ပိုသော Field Object များ၏ တန်ဖိုးများကို ပြောင်းလဲပြီးနောက် FieldChangeComplete ဖြစ်ရပ်ကို အစပျိုးသည်။
မှတ်ချက်- ဤအစီအစဉ်မပြန်မီတွင်၊ နောက်ဆက်တွဲသတိပေးချက်များကိုတားဆီးရန် အခြေအနေသတ်မှတ်ချက်ဘောင်ကို adStatusUnwantedEvent သို့သတ်မှတ်ပါ။
မှတ်ချက်- WillChangeField event နှင့် FieldChangeComplete event သည် Value property ကို သတ်မှတ်ပြီး Update method ကို field and value array parameters များဖြင့် ခေါ်သောအခါတွင် ဖြစ်ပေါ်နိုင်ပါသည်။
အထားအသို
WillChangeField numfields,fields,status,objRs
FieldChangeComplete numfields,fields,objErr,status,objRs
Parameter | Description |
---|---|
numfields | The number of Field objects in fields |
fields | An array that contains Field objects with changes |
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 |
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 ရည်ညွှန်းချက်