03-25-2009, 05:11 AM
I have got the answer for this.
Code:
On error resume next
CheckForParam = DataTable("Display", dtGlobalSheet)
If err.number <> 0 Then
'Param does not exist and must be added
DataTable.GetSheet("Global").AddParameter "Display",PrdName
Else
'Param exists and should be updated
DataTable.Value("Display",dtGlobalSheet) = PrdName
End If