l_varTemp of type Variant l_codTemp of type Code[20] l_blnRetVal of type Boolean l_rRecMyRecord of type RecordRef l_rFldMyField of type FieldRef A): l_rRecMyRecord.OPEN(18); l_rRecMyRecord.INIT; l_rFldMyField := l_rRecMyRecord.FIELDINDEX(1) ; l_varTemp := '12345678901234567890'; l_blnRetVal := l_rFldMyField.VALIDATE(l_varTemp) ; B): l_rRecMyRecord.OPEN(18); l_rRecMyRecord.INIT; l_rFldMyField := l_rRecMyRecord.FIELDINDEX(1) ; l_varTemp := '12345678901234567890'; l_rFldMyField.VALUE := l_varTemp;
Comments
l_blnRetVal := l_rFldMyField.VALIDATE(l_varTemp);
just
l_rFldMyField.VALIDATE(l_varTemp);
Should have been...
fieldref.VALIDATE([NewValue])