PdcApplication.ParamStr: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
No edit summary
 
Line 1: Line 1:
== Declaration ==
== Declaration ==
 
ParamStr as String


== Description ==
== Description ==
 
List of params that are used in RunScript


== Notes ==
== Notes ==
 
Variable that contains parameters that can be used inside scripts.


== Code example ==
== Code example ==
 
The code below uses the pdc.ParamStr, set by a different script to execute code with, then populating pdc.ParamStr with its outcome for use in the originating script. See also pdc.RunScript.


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


  rstrDNID = pdc.ParamStr  'use this string to extract the delivery's weight and destination to determine the cheapest transport option.
  pdc.ParamStr = "TransportCompany X"
</source>
</source>


== Availability ==
== Availability ==
Available since January 2009 (From version 3.9)

Latest revision as of 11:36, 21 May 2012

Declaration

ParamStr as String

Description

List of params that are used in RunScript

Notes

Variable that contains parameters that can be used inside scripts.

Code example

The code below uses the pdc.ParamStr, set by a different script to execute code with, then populating pdc.ParamStr with its outcome for use in the originating script. See also pdc.RunScript.

dim rstrDNID

  rstrDNID = pdc.ParamStr  'use this string to extract the delivery's weight and destination to determine the cheapest transport option.
  pdc.ParamStr = "TransportCompany X"

Availability

Available since January 2009 (From version 3.9)