PdcMaterialFile.Renumber

From External Bemet Wiki
Revision as of 13:16, 21 May 2012 by Mike (talk | contribs) (Created page with "== Declaration == Renumber(OldNumber as String,NewNumber as String) as Boolean == Description == == Notes == With this method materialnumbers can be renumbered to an other ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

Renumber(OldNumber as String,NewNumber as String) as Boolean

Description

Notes

With this method materialnumbers can be renumbered to an other number. The input paramaters are the old number and the new number as a string. the output paramater is a boolean.

Code example

Renumber a material

Sub btRenumberClick(Sender)
    if edOldNr.Text <> ""  and edNewNr.Text <> "" then
       pdc.MasterData.MaterialFile.Renumber edOldNr.Text, edNewNr.Text
       msgbox pdc.LastError
    end if
End Sub

Availability

Available since July 2009.