PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Example: Managing the modification errors: custom management of modification conflicts
HErrorModification (Example)
Example: Managing the modification errors: custom management of modification conflicts
Windows Mobile This example is used to customize the modification conflicts.
Reminder: the management of modification conflicts is automatically performed by default.
// Code of a procedure called to process a modification conflict

i is int = 1
AnItem is string
// Name of the file in conflict
FileName is string = HErrorInfo(hErrFile)
// Retrieves the list of items found in the file in modification conflict
ItemList is string = HListItem(FileName)

LOOP
// Extracts the nth item from the list of items in conflict
AnItem = ExtractString(ItemList, i, CR)
// Exit if no more items
IF AnItem = EOT THEN BREAK //Exit if no other item in conflict

// Displays the value of the item for the source record
Trace(HErrorModification(FileName, AnItem, hRecRead))
// Displays the value of the item for the file record
Trace(HErrorModification(FileName, AnItem, hRecFile))
// Displays the value of the item for the user record
Trace(HErrorModification(FileName, AnItem, hRecUser))
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment