S
Steve S
If BOTH of these types respond with DateTime ........
Dim da As Date = Today
Dim dt As DateTime = Now
If dt.GetType.Name = "Date" Then
MsgBox("dt date")
End If
If dt.GetType.Name = "DateTime" Then
MsgBox("dt datetime")
End If
If da.GetType.Name = "Date" Then
MsgBox("da date")
End If
If da.GetType.Name = "DateTime" Then
MsgBox("da datetime")
End If
AND IF.......
Dim da As Object = Today
Dim dt As Object = Now
If TypeOf da Is Date Then
MsgBox("DA is DATE")
End If
If TypeOf da Is DateTime Then
MsgBox("DA is DATETIME")
End If
If TypeOf dt Is Date Then
MsgBox("DT is DATE")
End If
If TypeOf dt Is DateTime Then
MsgBox("DT is DATETIME")
End If
shows that they confirm out to be BOTH (ie probably all inherited from the
same base class situation)....... how does one tell which type of object
they should be declaring a parameter to be.... when they are updating the
database with a command ?
OR... is MS saying that the adapters must always be tightly bound to the
database for situations like this ?
Dim da As Date = Today
Dim dt As DateTime = Now
If dt.GetType.Name = "Date" Then
MsgBox("dt date")
End If
If dt.GetType.Name = "DateTime" Then
MsgBox("dt datetime")
End If
If da.GetType.Name = "Date" Then
MsgBox("da date")
End If
If da.GetType.Name = "DateTime" Then
MsgBox("da datetime")
End If
AND IF.......
Dim da As Object = Today
Dim dt As Object = Now
If TypeOf da Is Date Then
MsgBox("DA is DATE")
End If
If TypeOf da Is DateTime Then
MsgBox("DA is DATETIME")
End If
If TypeOf dt Is Date Then
MsgBox("DT is DATE")
End If
If TypeOf dt Is DateTime Then
MsgBox("DT is DATETIME")
End If
shows that they confirm out to be BOTH (ie probably all inherited from the
same base class situation)....... how does one tell which type of object
they should be declaring a parameter to be.... when they are updating the
database with a command ?
OR... is MS saying that the adapters must always be tightly bound to the
database for situations like this ?