In following code control should not got to ReplaceMonthName SUB but only first "If" works correctly. Can anyone explain why this is so?
Code:
%UsesMonthNames = 1 %DelimiterSlash = 2 %DelimiterDot = 4 %DelimiterDash = 8 %YearFirst = 16 %YearMiddle = 32 %YearLast = 64 %MonthFirst = 128 %MonthMiddle = 256 %MonthLast = 512 %DayFirst = 1024 %DayMiddle = 2048 %DayLast = 4096 %Y2 = 8192 %Y4 = 16384 DateFormat = 20752 If (DateFormat And %UsesMonthNames) Then ReplaceMonthName D$ End If If DateFormat And %UsesMonthNames Then ReplaceMonthName D$ End If
Comment