User Tools

Site Tools


notifyupdateerror_throw_error_on_update_.htm
Navigation:  ABC Library Reference > BrowseClass > BrowseClass Methods >====== NotifyUpdateError (throw error on update) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

NotifyUpdateError( ), BYTE, VIRTUAL

blk2blue.jpg

The NotifyUpdateError method returns an error code to the active ErrorManager when an attempted update to refresh a record has failed.

Implementation:

The NotifyUpdateError is called from the BrowseClass UpdateViewRecord method, which is used to retrieve the VIEW record that corresponds to a chosen listbox record.

Return Data Type:     BYTE

Example:

IF SELF.ListQueue.Records()

 SELF.CurrentChoice = SELF.ILC.Choice()

 SELF.ListQueue.Fetch(SELF.CurrentChoice)

 WATCH(SELF.View)

 REGET(SELF.View,SELF.ListQueue.GetViewPosition())

 RC = ERRORCODE()

 IF  RC = NoDriverSupport

  Pos = POSITION (SELF.View)

  RESET(SELF.View,SELF.ListQueue.GetViewPosition())

  WATCH(SELF.View)

  NEXT(SELF.View)

  RC = ERRORCODE()

  RESET(SELF.View,Pos)

 END

 IF  RC <;> 0

  SELF.NeedRefresh = SELF.NotifyUpdateError()

 END

END

See Also:     UpdateViewRecord

notifyupdateerror_throw_error_on_update_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1