[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Null value into an integer variable


Hello


Public Sub Main()
  
  Dim sVar As String
  Dim iVar As Integer

  sVar = "gb"
  iVar = 3
  
  sVar = Null
  iVar = Null
  
End


When I put an Null value into a variable of type string I don't get an error and the variable gets a value of ""

But when I put an Null value into a variable of integer type it gives an error

Is this normal?

Thank you


Follow-Ups:
Re: Null value into an integer variableBB <adamnt42@xxxxxxxxx>
Re: Null value into an integer variableBruce Steers <bsteers4@xxxxxxxxx>
Re: Null value into an integer variableGianluigi <gradobag@xxxxxxxxxxx>
Re: Null value into an integer variableChristof Thalhofer <chrisml@xxxxxxxxxxx>
References:
GRIDVIEW color and size"Mayost Sharon" <sharon@xxxxxxxxx>
Re: GRIDVIEW color and sizeT Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: GRIDVIEW color and sizeT Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: GRIDVIEW color and size"Mayost Sharon" <sharon@xxxxxxxxx>
Re: GRIDVIEW color and sizeT Lee Davidson <t.lee.davidson@xxxxxxxxx>