تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
مقارنه تارخين مع بعض
#1
كاتب الموضوع : AhmedEssawy


كود :
Public Function compareDates(Date1 As Date, Date2 As Date) As _
Integer
' If Date1 is greater the function returns the number 1
' If Date2 is greater the function returns the number 2
' If Date1 equals Date2 the function returns the number 0

Select Case Date1
Case Is > Date2
compareDates = 1
Case Is < Date2
compareDates = 2
Case Else
compareDates = 0
End Select
End Function
}}}
تم الشكر بواسطة:


التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم