ADO WillChangeFieldFieldChangeComplete 이벤트


❮ 완전한 레코드세트 개체 참조

WillChangeField 이벤트

WillChangeField 이벤트는 하나 이상의 필드 개체 ​​값이 변경되기 전에 트리거됩니다.

참고: 이 이벤트가 반환되기 전에 이 이벤트를 발생시킨 작업을 취소하려면 status 매개변수를 adStatusCancel로 설정하세요. 

FieldChangeComplete 이벤트

FieldChangeComplete 이벤트는 하나 이상의 필드 개체 ​​값이 변경된 후에 트리거됩니다.

참고: 이 이벤트가 반환되기 전에 상태 매개변수를 adStatusUnwantedEvent로 설정하여 후속 알림을 방지하세요. 

참고: WillChangeField 이벤트 및 FieldChangeComplete 이벤트는 Value 속성을 설정하고 필드 및 값 배열 매개변수를 사용하여 Update 메서드를 호출할 때 발생할 수 있습니다.

통사론

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

❮ 완전한 레코드세트 개체 참조