adsense

Tuesday, September 15, 2020

using iif to check null

IIf is a function which evaluates all its arguments, Vb net has if operator which works similar to the short circuit  if operator.

 e.g.

varName =   If(objName Is Nothing, "", objName.ToString())

No comments:

Post a Comment