PEGetNthParameterCurrentValue

Use to retrieve a value from the specified parameter field of a report. Use PEGetNParameterCurrentValues, to determine the number of values currently held in the parameter field. See Working with Parameter Values and Ranges.

C Syntax
BOOL CRPE_API PEGetNthParameterCurrentValue (
        short printJob,
        const char FAR *parameter FieldName,
        const char FAR *reportName,
        short index,
        PEValueInfo FAR *currentValue );
Parameters

printJob

Specifies the print job for which you want to determine the parameter current value.

parameterFieldName

Specifies a pointer to a string containing the parameter field name.

reportName

Specifies a pointer to a string containing the report name. See Remarks below.

index

Specifies the index number of the value to be retrieved.

currentValue

Specifies a pointer to PEValueInfo, in which the value will be returned. If it contains no value then it will be set to the constant PE_VI_NOVALUE rather than NULL.

Returns
Remarks

Regarding parameter reportName:

VB Syntax
Declare Function PEGetNthParameterCurrentValue Lib "crpe32.dll" ( _
    ByVal printJob As Integer, ByVal parameterFieldName As String, _
    ByVal reportName As String, ByVal index As Integer, _
    currentValue As PEValueInfo ) As Integer
Delphi Syntax

Delphi code for getting/setting parameter field information

function PEGetNthParameterCurrentValue (
    
printJob: smallint;
    const parameterFieldName: PChar;
    const reportName: PChar;
    index: smallint;
    var currentValue: PEValueInfo
    ): BOOL stdcall;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com