bianchef
Posts: 17
|
Posted: 03/30/2007, 5:56 PM |
|
My error is "StartIndex cannot be less than zero. Parameter name: startIndex" on clicking Add button in vCalendar events page.
I would like to display the Add button at all times so that a new record can be inserted (displayed with Submit, Delete, Cancel on the record form).
The syntax I use for custom code in beforeshow is
<formname><buttonname>.Visible=True
The Add button is displayed by this code but I receive the StartIndex error message when clicking the Add button.
The record is inserted into the database despite the error message.
I need to either remove the error or suppress the error for users not to panic using the vCalendar when inserting events.
Any ideas on how to do this?
for a reference, see YesSoftware Forums -> CodeCharge Studio -> .NET
Add, Submit and Delete http://forums.yessoftware.com/posts.php?post_id=60219
My environment is CCS 3.1, Ultraapps vCalendar (asp.net vb), IIS 6.0, SQL 2000
|
|
|
gregm
Posts: 21
|
Posted: 04/02/2007, 12:26 AM |
|
you could put a try catch round your code to specifically catch the warning.
try
<your code>
catch <index exception>
end try
_________________
Greg Martin
gmartin@microresource.co.uk |
|
|
|