I am using VB.net 2005. I have an issue formatting a datetime. it tells me that 'Format' is a type and cannot be used as an expression.
check code any help greatly appriciated.
Dim CurrentTime As String
CurrentTime = Format(DateTime.Now, "g")
If Me.SCHEDULEDDIPTIMETextBox.Text = CurrentTime Then
Dim SelectedRowView As Data.DataRowView
Dim SelectedRow As BasketReportDataSet.DIPSTATUSTIMESRow
SelectedRowView = CType(DIPSTATUSTIMESBindingSource.Current, System.Data.DataRowView)
SelectedRow = CType(SelectedRowView.Row, BasketReportDataSet.DIPSTATUSTIMESRow)
Dim NewRackLoader As New RackLoader
NewRackLoader.LoadRecord(SelectedRow.ID)
NewRackLoader.Show()
Else
End If


Reply With Quote


Bookmarks