getParamListTypeEntry

getParamListTypeEntry(index:     Integer;
                      paramList: ParamListType): Any;

The getParamListTypeEntry method of the Application class returns the value of the parameter in the ParamListType pseudo type list specified in the paramList parameter at the position specified in the index parameter.

The first entry in the parameter list is at index 1. If the value of the index parameter is outside the bounds of the parameter list, an exception is raised.

The following example retrieves the third entry from the parameter list then tests and displays its value.

doSomething(pl : ParamListType);
vars
    param : Any;
begin
    param := app.getParamListTypeEntry(3, paramList);
    if param.isKindOf(Integer) then
        write "Third parameter is an Integer= " & param.String;
    elseif param.isKindOf(Boolean) then
        write "Third parameter is a Boolean= " & param.String;
    elseif param.isKindOf(String) then
        write "Third parameter is a String= " & param.String;
    elseif param.isKindOf(Object) then
        write "Third parameter is an Object= " & param.String;
    else
        write "Third parameter is something else= " & param.String;
    endif;
end;