I have 2 fields on a form SHPDT_ISO and CANDT_ISO both defined as date fields. How do I extract them from the form and converted the to an 8,0 date field. I have the field datefld8 defined as a date field in the program but I am getting an error when trying to compile. I tried using GetFormChar as well.
datefld8 s d datfmt(*iso)
datefld8 = GetFormNum('SHPDT_ISO');
uiso = datefld8;
thsdte = uiso;
datefld8 = GetFormNum('CANDT_ISO');
uiso = datefld8;
thcdte = uiso;
*RNF7416 30 017148 The types of the right and left hand side do not match in
the EVAL operation.
*RNF7416 30 017150 The types of the right and left hand side do not match in
the EVAL operation.
*RNF7416 30 017152 The types of the right and left hand side do not match in
the EVAL operation.
*RNF7416 30 017154 The types of the right and left hand side do not match in
the EVAL operation.
datefld8 s d datfmt(*iso)
datefld8 = GetFormNum('SHPDT_ISO');
uiso = datefld8;
thsdte = uiso;
datefld8 = GetFormNum('CANDT_ISO');
uiso = datefld8;
thcdte = uiso;
*RNF7416 30 017148 The types of the right and left hand side do not match in
the EVAL operation.
*RNF7416 30 017150 The types of the right and left hand side do not match in
the EVAL operation.
*RNF7416 30 017152 The types of the right and left hand side do not match in
the EVAL operation.
*RNF7416 30 017154 The types of the right and left hand side do not match in
the EVAL operation.
Comment