PdcRelationFile.Renumber
Declaration
Renumber(OldRelNo as string,NewRelNo as string, CheckNewNoExists as boolean, SkipRenumberOldRelation as boolean) as boolean
Description
Renumbers a relation to another number.
Notes
Renumbers a relation to another number.
CheckNewNoExists = If the new number is already an existing relation, cancel renumber action and return false.
SkipRenumberOldRelation = Does not renumber the old relation, because of merging two relations. After renumering a new relation exists with all contacts, calculations, attachments and more.
The old relation exists and does not have any linked items like contacts, calculations, attachments and more.
Code example VB.NET
dim OldRelNo as string = "002560"
dim NewRelNo as string = "000345"
If not PDC.App.MasterData.RelationFile.Renumber(OldRelNo , NewRelNo , False, True) Then
msgbox(PDC.App.LastError)
end if
Availability
Available since March 2018 (from version 5.4)