PdcRelationFile.Renumber: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Declaration == Renumber(OldRelNo as string,NewRelNo as string, CheckNewNoExists as boolean, SkipRenumberOldRelation as boolean) as boolean == Description == Renumbers a re..." |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
== Notes == | == Notes == | ||
Renumbers a relation to another number.<br /> | Renumbers a relation to another number or merge two relations.<br /> | ||
CheckNewNoExists | <br /> | ||
SkipRenumberOldRelation | CheckNewNoExists<br /> | ||
If the new number is already an existing relation, cancel renumber action and return false.<br /> | |||
<br /> | |||
SkipRenumberOldRelation<br /> | |||
Does not renumber the old relation, because of merging two relations. After renumering a new relation exists with all contacts, calculations, attachments and more.<br /> | |||
The old relation exists and does not have any linked items like contacts, calculations, attachments and more.<br /> | |||
== Code example VB.NET == | == Code example VB.NET == |
Latest revision as of 08:52, 13 April 2018
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 or merge two relations.
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)