If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

A general error occurred while adding parameter

Hi,

I'm getting the following error message on trying to add a new column and value for that column in the global data sheet.

What the function does is it checks for existing column name in global data sheet, if the column name passed already exist, it update the new value with current value. If it does not exist then it create a new column and update the value passed.

intColumnCount = DataTable.GetSheet("Global").GetParameterCount
For intLoop = 1 to intColumnCount
If ipStrColumnName = Trim(DataTable.GetSheet("Global").GetParameter(int Loop).Name) Then
blnColumnAlreadyExist = True
Exit For
End If
Next

If blnColumnAlreadyExist Then
DataTable.Value(ipStrColumnName) = ipStrColumnValue
Else
DataTable.GlobalSheet.AddParameter ipStrColumnName, ipStrColumnValue ' Exact line where aove mentioned throws.
End If