Page 1 of 1

Get line number in List Field - Newbie Question

Posted: Fri Feb 08, 2008 4:44 am
by benoestrada
Hi,

I'm new to RunRev and have this question:

I have a list field object and would like to know the line number of the selected item.

Say I have
A
B
C
D

And click the mouse on C, what is the code to know that C is in line 3 of my field?

Thanks for your time and ideas.

beno

Posted: Fri Feb 08, 2008 5:34 am
by benoestrada
Hi

I got it.

Dismiss this thread.

Posted: Sat Feb 09, 2008 2:58 pm
by Andycal
How did you do it?

Posted: Sat Feb 09, 2008 6:45 pm
by Klaus
Hi Andy,

you can retrieve info from list fields like:

...
the selectedtext of fld "list field"
## well, you guess, that returns the text the user selected/clicked :-)
...
the hilitedlines of fld "list field"
## will return the number of the selected line


Best

Klaus