How to assign null value to a date or string variable in VB.NET?

Ali

New member
Hi,



What i am trying to do is the following:



I retrieve a date value from the database using a select query. If the query returns results i assign the result to a variable called maxDate, which i declared as Date.if it does not return any result, i want to assign a null value to that maxDate variable.I tried to do it with several ways, but none of them is working.can you help me pls??



Thanks,

Ali
 
Back
Top