FUNCTION fn-MonthName RETURNS CHARACTER
  (INPUT ip-MonthNumber AS INTEGER):
  DEFINE VARIABLE lv-Months as CHARACTER NO-UNDO INITIAL "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".
  IF ip-MonthNumber LT 1 OR ip-MonthNumber GT 12 THEN
    RETURN "".
  RETURN ENTRY(ip-MonthNumber,lv-Months).
END.using System.*.
using System.Globalization.*.
define variable monthNumber    as integer   no-undo.
define variable monthName      as character no-undo.
        
assign
    monthNumber = 3 // Example month number
    monthName = System.Globalization.CultureInfo:CurrentCulture:DateTimeFormat:GetMonthName(monthNumber).       
        
message Substitute("Month name for month number &1: &2", monthNumber, monthName)
    view-as alert-box information.
MESSAGE System.Globalization.CultureInfo:CurrentCulture:DateTimeFormat:GetMonthName(3) VIEW-AS ALERT-BOX INFORMATION.DEFINE VARIABLE oDateTimeFormatInfo AS System.Globalization.DateTimeFormatInfo NO-UNDO.
oDateTimeFormatInfo = NEW System.Globalization.DateTimeFormatInfo().
MESSAGE oDateTimeFormatInfo:GetMonthName(3) VIEW-AS ALERT-BOX INFORMATION.I know that! I started to work with Progress 4GL about just one year!It might be about 11 years too late
DEF VAR meses AS CHAR EXTENT 12 INIT ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]
NO-UNDO.
DISPLAY meses[1]