Clist problems..



Clist is one of the most usefull things..
However, either the API defination put up on the site has problems or
something else..

The problems are as follows..

1. if i have a pointer to a clist, how do i find out which/which all and
howmany rows are selected ?
I must say, there are some mails discribe to use slection glist which is
the part of clist struct. but the API reference says it has all the
private data.

2. another bigger difficulty is to findout how many rows are there in the
clist. I dont see any help on that part.. Whenever i am appending any row,
that time, i want to insert the row_data also.. now the last row that i
appended, i dont really know as to what is the row number, neither that
row is in the selection list.. Also there is no way to apppend row along
with data..

A dirty  way is that,
a. freez the list,
b. select all the row,
c. find out how many rows are selected, and so you get the total_row..
(This is if the above selection thingy works !!)..
(Also this may not work later if selection mode of the list is not
single..!))

So finally you leave with the option of all global variabals..

Its a funny thing to note that, i have a clist, all the rows are within
the data structers, all the relevnt data associated is also in the same
data, but which row is selected and how many rows are there, is stored
some where way far in my local function.

I dont really know if i'am missing something, but this is what API says..

Dipan Mehta.
Indian Institute of Technology, Bombay..
-- 








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]