01-03-2009, 06:43 PM
HI Swetha,
I wrote one user defined function which takes requires row number as an Input argument/Parameter.
1. Refer the below function defination :
2. Call the above function as given below :
Call Column_Count_Retrieve(3) ' Calling the function for finding the no. of columns used by 3rd Row
Call Column_Count_Retrieve(1) ' Calling the function for finding the no. of columns used by 1st Row
Call Column_Count_Retrieve(2) ' Calling the function for finding the no. of columns used by 2nd Row
I hope now your requirement has been solved.
I wrote one user defined function which takes requires row number as an Input argument/Parameter.
1. Refer the below function defination :
Code:
Function Column_Count_Retrieve(Rownumber)
Datatable.Getsheet("Global").SetCurrentrow(Rownumber)
Temp=0
Col_Count=Datatable.GetSheet("Global").GetParametercount
for j=1 to Col_Count
Val=Datatable.GetSheet("Global").GetParameter(j).Value
if Val<> "" then
Temp=Temp+1
end if
Next
msgbox "Row " &Rownumber&" : "&Temp&" rows"
End Function
2. Call the above function as given below :
Call Column_Count_Retrieve(3) ' Calling the function for finding the no. of columns used by 3rd Row
Call Column_Count_Retrieve(1) ' Calling the function for finding the no. of columns used by 1st Row
Call Column_Count_Retrieve(2) ' Calling the function for finding the no. of columns used by 2nd Row
I hope now your requirement has been solved.