03-31-2006 12:23 PM
Dear experts,
I need to be able to double click in a line of a table control. Is this possible, without having to define an extra field 'SEL' and selecting that? Is the cursor position stored somewhere?
thank you in advance,
Roxani
03-31-2006 12:29 PM
Hi,
may be you can try this enable respond to double click and get the cursor position where the line is clicked.
for getting the cursor you can use the syntax <b>get cursor</b>
regards
vijay
03-31-2006 12:29 PM
Hi,
may be you can try this enable respond to double click and get the cursor position where the line is clicked.
for getting the cursor you can use the syntax <b>get cursor</b>
regards
vijay
03-31-2006 12:33 PM
hai roxani,
you can use get cursor position instead of selecting extra field.
To retrieve information on the cursor position during an interactive event, use the GET CURSOR statement to refer to either the field or the line.
Syntax
GET CURSOR FIELD <f> [VALUE <val>] .
try it out.
regards,
praba.
03-31-2006 12:37 PM
Thank you for your replies.
Does the "cursor field" statement work for table controls as well as in lists?
03-31-2006 12:39 PM
Hi Roxani,
A simple get cursor wouldn't suffice in your case.
I think you need the line additon.
Get cursor <fieldname> line <line num>.
Regards,
Ravi
03-31-2006 12:41 PM
Hi Roxani,
yes, it will work.
you need to use like this
<b>Get cursor fld line lineno.</b>
Regards
vijay
03-31-2006 12:39 PM
Hi
Yes it is possible to double click on a line of a table control,and the cursor position is not stored anywhere.Besically this thing done when you want to generate one action by clicking on the field of a table control.
I hope this will help you to solve the problem.
Thanks
Mrutyunjaya Tripathy
03-31-2006 12:44 PM
Hai roxani,
there are two get cursor commands for field and line.
GET CURSOR FIELD <f> [OFFSET <o>] [LINE <n>] [VALUE <val>] [LENGTH <l>].
Transfers the name of the field on which the cursor is positioned during a user action into the variable <f>.
GET CURSOR LINE <n> [OFFSET <o>] [VALUE <val>] [LENGTH <l>].
Transfers the number of the line on which the cursor is positioned during a user action into the variable <n>.
regards,
praba.