Checking for a void
-
How can I check for a NULL/NOTHING/VOID in VB .NET? If I recall correctly in VB6 it was ISNULL(Variable,Var if NULL) and i think in VBA it was NZ(Variable,Var if NULL) Can't find the .Net equivalent. Thanks
-
How can I check for a NULL/NOTHING/VOID in VB .NET? If I recall correctly in VB6 it was ISNULL(Variable,Var if NULL) and i think in VBA it was NZ(Variable,Var if NULL) Can't find the .Net equivalent. Thanks
-
How can I check for a NULL/NOTHING/VOID in VB .NET? If I recall correctly in VB6 it was ISNULL(Variable,Var if NULL) and i think in VBA it was NZ(Variable,Var if NULL) Can't find the .Net equivalent. Thanks
Hi I think you can use expression vbNull! something like this: If you have a function like: Private Function LoadData() As DataReader So your code can be like this: If LoadData = vbNull Then . . . End IfYou can find more about it on MSDN(search for VisualBasic Namespace). Hope it can help Have a nice programming day