PdcRelationFile.Renumber

From External Bemet Wiki
Revision as of 08:51, 13 April 2018 by TC (talk | contribs) (Created page with "== Declaration == Renumber(OldRelNo as string,NewRelNo as string, CheckNewNoExists as boolean, SkipRenumberOldRelation as boolean) as boolean == Description == Renumbers a re...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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)