Within an _onWebEvent, I am attempting to do the following:

     CSpTextBox tbAddQty = (CSpTextBox) getDisplayField("*tbAddQty");
     CSpVector svAddQty = (CSpVector) tbAddQty.getValue();

If the text box tbAddQty has only one occurrence in the repeating group, the cast to a 
CSpVector fails.  
If it has multiple occurrences, the cast is successful.  

Is there a way to cast tbAddQty to a CSpVector if it has only one occurrence or do I 
need to perform
this within a Try/Catch block to handle it accordingly?

Thanks,

Alan Turner
Frito-Lay, Inc.
[EMAIL PROTECTED]
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to