Thanks Gerrick, Wes, and Dominik. It works perfectly!<br><br>- Adam<br><br><div class="gmail_quote">On Mon, Aug 3, 2009 at 11:10 AM, Gerrick Bivins <span dir="ltr">&lt;<a href="mailto:gbivins@objectreservoir.com">gbivins@objectreservoir.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">Adam,<br>
<br>
Have you tried something like this:<br>
//1. Define array variable mappings for the calculator<br>
  velcalc.AddScalarVariable(“xComponent”,”x”,0)<br>
  velcalc.AddScalarVariable(“yComponent”,”x”,1)<br>
  velcalc.AddScalarVariable(“zComponent”,”x”,2)<br>
<br>
//2. Define the function for calculating the vector<br>
   velcalc.SetFunction(“xComponent*iHat + yComponent*jHat + zComponent*kHat”);<br>
<br>
//3. Name result array<br>
   velcalc.SetResultArrayName(“Vector”);<br>
<br>
<br>
<br>
On 8/3/09 9:51 AM, &quot;Adam Wiktor&quot; &lt;<a href="http://awiktor@emory.edu" target="_blank">awiktor@emory.edu</a>&gt; wrote:<br>
<br>
</span></font><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">velcalc.AddVectorArrayName(_____________)<br>
</span></font></blockquote>
</div>


</blockquote></div><br>