Posts: 127
Threads: 9
Joined: Apr 2010
Reputation:
0
08-03-2010, 11:42 AM
First you count how many rows are there. Get the 1st row value of the "Level" column and compare it with the rest of the values of the same column. If any matches found then no need to proceed further and exit from the function (If you are going to test this one by preparing a function). If no matches found then you get the 2nd row value of the "Level" column and compare it with the rest of the values of the same column.
Posts: 7
Threads: 3
Joined: Jul 2010
Reputation:
0
08-03-2010, 01:35 PM
I still cnt get it..
nth happened..
is there sth wrong with my code?
Posts: 127
Threads: 9
Joined: Apr 2010
Reputation:
0
08-03-2010, 01:53 PM
As you told that in that table row default value is 1. So if we consider row count as 1 then no need compare and even though you are trying to access the function then it will return False.
The function is designed for returning only the True or False value.
Posts: 7
Threads: 3
Joined: Jul 2010
Reputation:
0
08-03-2010, 02:00 PM
i dun get what u mean..
default value is 1 mean even without adding anything to the table, the rows count is alrdy 1 in the first place.
Posts: 127
Threads: 9
Joined: Apr 2010
Reputation:
0
08-03-2010, 02:33 PM
Hi Aestival,
ok i got your point.
You add few rows in the table and use the latest function and pass the rowcount to that function and see what the function is returning?