ThierryC
05-21-2010, 08:05 AM
I'm trying to convert my current program under valence20 to valence21 and i'm quite a few problems.
program running without problem under v2.0 now don't work anymore.
i keep receivin error message
Problem 1: i get this when trying to open the Error-monitor
Attempt made to divide by zero for fixed point operation.
Eigendom object VVUTILITY type *USRSPC in QTEMP is gewijzigd.
Tried to refer to all or part of an object that no longer exists.
Functiefout opgetreden. MCH3402 niet voorzien door VVSRVPGM bij
programma-instructie 0000014900, systeeminstructie X'0000'.
VVSRVPGM VVUTILITY VVUTILITY_GETFIELDINFO.
Problem 2;
in option maintenance, i get the same error, referring the the same module and linenbr, when trying to edit an option that has optional parms.
Problem 3:
when running an option thas has optional parms specified
version=2010&frommonth=0it seems that only the last parm is transfered in the rpg
when looking in the Vvcall pgm, i've noticed a possible cause in the AddParmsToQueryString-procedure '
VALENCE20
buffer=vvUtility_getEnvVar('QUERY_STRING');
if buffer<>*blanks;
buffer=%trim(buffer)+'&';
endif;
buffer=%trim(buffer)+%trim(optData(x).vvOptParms);
putEnv('QUERY_STRING='+buffer);
VALENCE21
buffer=vvUtility_getEnvVar('QUERY_STRING');
if buffer<>*blanks;
buffer=%trim(buffer)+ AT;
endif;
buffer=%trim(buffer)+%trim(optData(x).vvOptParms);
putEnv('QUERY_STRING='+buffer);
Should'nt the 'AT' be a 'AMP' !!!! since it is specified in the help that multiple parms need to be separated by '&'
Alas i think this is not the only place where the error is, because even when modifying the v2.1 vvcall and replacing the AT again by the harcoded '&', i'm still not getting all the parms back...
program running without problem under v2.0 now don't work anymore.
i keep receivin error message
Problem 1: i get this when trying to open the Error-monitor
Attempt made to divide by zero for fixed point operation.
Eigendom object VVUTILITY type *USRSPC in QTEMP is gewijzigd.
Tried to refer to all or part of an object that no longer exists.
Functiefout opgetreden. MCH3402 niet voorzien door VVSRVPGM bij
programma-instructie 0000014900, systeeminstructie X'0000'.
VVSRVPGM VVUTILITY VVUTILITY_GETFIELDINFO.
Problem 2;
in option maintenance, i get the same error, referring the the same module and linenbr, when trying to edit an option that has optional parms.
Problem 3:
when running an option thas has optional parms specified
version=2010&frommonth=0it seems that only the last parm is transfered in the rpg
when looking in the Vvcall pgm, i've noticed a possible cause in the AddParmsToQueryString-procedure '
VALENCE20
buffer=vvUtility_getEnvVar('QUERY_STRING');
if buffer<>*blanks;
buffer=%trim(buffer)+'&';
endif;
buffer=%trim(buffer)+%trim(optData(x).vvOptParms);
putEnv('QUERY_STRING='+buffer);
VALENCE21
buffer=vvUtility_getEnvVar('QUERY_STRING');
if buffer<>*blanks;
buffer=%trim(buffer)+ AT;
endif;
buffer=%trim(buffer)+%trim(optData(x).vvOptParms);
putEnv('QUERY_STRING='+buffer);
Should'nt the 'AT' be a 'AMP' !!!! since it is specified in the help that multiple parms need to be separated by '&'
Alas i think this is not the only place where the error is, because even when modifying the v2.1 vvcall and replacing the AT again by the harcoded '&', i'm still not getting all the parms back...