title: Delphi TOracleQuery Bind Variable
body: <p>I am trying to call a query from Delphi 6 with bind variables, using the DOA component set's TOracleQuery object. I have 6 variable, 1 of which is a string (VarChar2 in Oracle lingo). I have tried calling query.DeclareVariable with the otVarchar2 enumeration, which intuitively makes sense, the otString enumeration (as the documentation recommends), and the otVarchar enumeration (on the off-chance it would work), all of which result in an exception at runtime: "Unsupported variable type".</p>
  
  <p>Any idea what would be wrong? I would think creating a string-type bind variable would be a fairly common occurrence.</p>
  
  <p>UPDATE:
  It was the otNumber that was causing the exception. It was just breaking on the otString line.</p>