title: LotusScript Call Stored Procedure Data Overflow Error
body: <p>Using Lotus Script I've declared a variable:</p>
  
  <pre><code>Dim SomethingId As LCField
  </code></pre>
  
  <p>I later do a</p>
  
  <pre><code>Set parms = New LCFieldList
  Set SomethingId = parms.Append("@somethingID", LCTYPE_INT)
  </code></pre>
  
  <p>*I've also tried LCTYPE_TEXT  I read my SomethingID from LotusNotes</p>
  
  <pre><code>Dim intSomeID As Integer
  If  doc.GetItemValue("someID")(0) = Null  Or doc.GetItemValue("someID")(0) = "" Then
      intSomeID = "0"
  Else
      intSomeID = doc.GetItemValue("someID")(0)
  End If
  
  Messagebox "someID = " &amp; intSomeID
  </code></pre>
  
  <p>my messagebox shows "someID = 0</p>
  
  <p>but when I get to a line where I try to shove the data into the parameter variable I get a data overflow error.</p>
  
  <pre><code>SomethingId.Text = intSomeID
  </code></pre>
  
  <p>I've tried</p>
  
  <pre><code>SomethingId.Value = intsomeID
  </code></pre>
  
  <p>Anyone now what is causing this?  And more importantly how to fix it?</p>