GetMonth(month : Text) ris : Text IF NOT EVALUATE(MonthAsInt,month) THEN EXIT(''); IF MonthAsInt IN [1..12] THEN BEGIN ris :='?'; ris[1] := 64 + MonthAsInt; END;... where MonthAsInt is a local variable of type Integer
DayNumberAsText := FORMAT(DATE2DMY(TableFiscal.DOB,1)); IF STRLEN(DayNumberAsText) = 1 THEN DayNumberAsText := '0' + DayNumberAsText;...there are alternative methods but the above should do fine.
Answers
... where MonthAsInt is a local variable of type Integer
...there are alternative methods but the above should do fine.