Sets the given geoprocessing value into the given parameter/variable.
[Visual Basic 6.0] Sub PackGPValue(
ByVal pValue As IGPValue, _
ByVal pInput As Unknown _
)
[Visual Basic .NET] Public Sub PackGPValue ( _ ByVal pValue As IGPValue, _ ByVal pInput As Object _ )
[C#] public void PackGPValue ( IGPValue pValue, object pInput );
[Java] public void packGPValue ( IGPValue pValue, Object pInput ) throws IOException, AutomationException
[C++] HRESULT PackGPValue( IGPValue* pValue, LPUNKNOWN pInput );
Parameters
pValue [in]
pValue is a parameter of type IGPValue
pInput [in]
pInput is a parameter of type LPUNKNOWN
The PackGPValue method is used to assign, for example an output value to a specific function parameter. such as a derived output. A code sample is included below. For an extended code sample refer to the Validate Method section of the Building Geoprocessing Functions technical document.
'Set the output value into the derived output parameter
Set pParam = paramvalues.Element(1)
pUtils.PackGPValue pOutputValue, pParam