My Oracle Support Banner

E-PC: When Comparing Class Object Numeric Values Against Other Values in PeopleCode, the Class Object Value is Returned as Type Character (Doc ID 2610043.1)

Last updated on NOVEMBER 27, 2019

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.56 and later
Information in this document applies to any platform.

Goal

When "RSV"
  If &oVADisabilityObject.TFPYear >= 20 Then
  &isCRDP = True;

Property TFPyear is a value stored in Field.YEARS (delivered field), which is numeric.
But, when referencing it in the 'If' statement, it seems to somehow compare it as if it was a character, rather than and numeric type.
For example, if the value returned is 9, when you compare it with 20, the comparison in the 'If' statement should have returned false, but it returned true instead.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.