PdcCalculation.CBSno: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == == Description == == Notes == == Code example == <source lang="vb"> </source> == Availability =="
 
No edit summary
 
Line 1: Line 1:
== Declaration ==
== Declaration ==
 
CBSno as String


== Description ==
== Description ==
 
Returns or changes the comodity code


== Notes ==
== Notes ==
 
his property sets or returns the CBS number (=commodity code) for the calculation. The CBS number is displayed in the Payment and Shipment page of the calculation form.
In case of setting this property please ensure correct data entry by using pdc.ChooseRecord. The ptPickKind for CBS numbers is 83.


== Code example ==
== Code example ==
 
This code example sets the CBS number of active calculation to the one selected by the user, then refreshes the form.


<source lang="vb">
<source lang="vb">
dim objCalc


  set objCalc = pdc.ActiveCalculation
  objCalc.CBSno = pdc.ChooseRecord(83,"","")
  objCalc.Refresh
</source>
</source>


== Availability ==
== Availability ==

Latest revision as of 08:59, 21 May 2012

Declaration

CBSno as String

Description

Returns or changes the comodity code

Notes

his property sets or returns the CBS number (=commodity code) for the calculation. The CBS number is displayed in the Payment and Shipment page of the calculation form. In case of setting this property please ensure correct data entry by using pdc.ChooseRecord. The ptPickKind for CBS numbers is 83.

Code example

This code example sets the CBS number of active calculation to the one selected by the user, then refreshes the form.

dim objCalc

  set objCalc = pdc.ActiveCalculation
  objCalc.CBSno = pdc.ChooseRecord(83,"","")
  objCalc.Refresh

Availability