NotifyUpdateError (throw error on update)

Top  Previous  Next

 

NotifyUpdateError( ), BYTE, VIRTUAL

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