Welcome! Log In Create A New Profile

Advanced

Row selection event of a table

Posted by John Marrone 
John Marrone
Row selection event of a table
May 11, 2009 01:37PM
Hi All

I have tables that are filled by query's.The problem is that when you fill a table with data or TableDisplay the table the row selection event fires. I do not want this event to fire. I only want this event to fire if the use actually clicks on the row to select the row. Is there any way to prevent this event from firering unless the user actually clicks on the row to select it.
John Marrone
Re: Row selection event of a table
May 11, 2009 02:08PM
Hi

I can get the same thing I want by using the mouse up event. By the time this event fires the row has changed and I can get the correct data I need from the now current row and get done what I need to do. I haven't done all the testing to make sure I haven't corrupted anything in my project by doing it this way but so far so good. The point being is that the row pointer has changed before the mouse up event has fired. Problem solved. I gave up a little to soon before I asked for help, sorry.
Al
Re: Row selection event of a table
May 11, 2009 02:18PM
Hello John

Another option is to setup a variable to control whether the rowselection code is run or not when the event fires. The variable is set prior to each occurence of tabledisplay().

LDisplayOnly is boolean = true
TableDisplay(Table)

In the Table RowSelection event
If Not LDisplayOnly
//do what ever the row select event code is
End
LDisplayOnly = false


Regards
Al
John Marrone
Re: Row selection event of a table
May 11, 2009 03:54PM
Thanks Al

I thought about doing it that way but I have a lot of tables and I only need to do what I need to do on about 10 of them. Then the mouse up event dawn on me. And that's an event only the user can cause to fire. But thanks for your time Al, that was my second choice.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: