isActual testuje jestli datum nactene ze souboru je dnesni
Private strTime As String
Private strDate As String
Private strText As String
Private strTyp As String
Public Function isActuall() As Boolean
Dim bActuall As Boolean = False
Try
Dim intToday As Integer = Weekday(Date.Now, FirstDayOfWeek.Monday)
'Podle data
If strDate.Trim <> "" Then
Dim intDate As Integer = Date.Compare(CDate(strDate), DateAndTime.DateSerial(Year(Now), Month(Now), DateAndTime.Day(Now)))
If intDate = 0 Then bActuall = True
End If
Catch ex As Exception
End Try
Return bActuall
End Function
setAll uklada data ze souboru do tridy Row
Public Sub setAll(ByVal pole As String())
strTime = pole(0)
strDate = pole(1)
strText = pole(2)
strTyp = pole(3)
End Sub
getAll vraci data ze tridy Row
Public Function getAll() As Object()
Dim obj(4) As Object
obj(0) = strTime
obj(1) = strDate
obj(2) = strText
obj(3) = strTyp
Return obj
End Function
A to ze funkce LoadData vraci collection je pozustatek po jistem zameru, ktery jsem nakonec nerealizoval...
|