PdcProductReport.Save: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Declaration == Save as Boolean == Description == == Notes == == Code example == <source lang="vb"> </source> == Availability ==" |
|||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
== Notes == | == Notes == | ||
When the save returns false the error during saving is stored in PdcProductReport.Error. | |||
== Code example == | == Code example == | ||
<source lang="vb"> | <source lang="vb"> | ||
Sub CreateProductReport | |||
dim objProductReport | |||
set objProjectReport = pdc.ProductRegistration.ProductReports.New | |||
objProjectReport.InternalReady = true | |||
objProjectReport.Quantity = 20 | |||
if not objProjectReport.Save then | |||
msgbox objProjectReport.Error | |||
end if | |||
set objProjectReport = nothing | |||
End Sub | |||
</source> | </source> | ||
== Availability == | == Availability == |
Latest revision as of 10:10, 18 June 2012
Declaration
Save as Boolean
Description
Notes
When the save returns false the error during saving is stored in PdcProductReport.Error.
Code example
Sub CreateProductReport
dim objProductReport
set objProjectReport = pdc.ProductRegistration.ProductReports.New
objProjectReport.InternalReady = true
objProjectReport.Quantity = 20
if not objProjectReport.Save then
msgbox objProjectReport.Error
end if
set objProjectReport = nothing
End Sub