You've shown us where you set a value for thisform.l_Wasdoubleclicked, but you don't say where you check for this value. It seems that has something to do with your problem. What is this variable used for?
>Hello Everbody!
>
>After hours of testing i found the reason for the suspect behavior of my grid!??
>
>i have a class mygrid based on grid
>all textboxes in all columns have a doubleclick event
>do thisform.whatnow
>
>
>the whatnow method of my form2 does:
>
>if form2 called with parameter
> thisform release
>else
> do form3 with ...
>endif
>
>form2.unload does
>if form2 called with parameter
> return value
>endif
>
>everything works as expected
>i can call form2 from form1 serveral times and the doubleclick on a textbox in mygrid works
>
>then i changed the class mygrid
>at doubleclick of all textboxes i at a line
>thisform.l_wasdoubleclicked = .T.
>do thisform.whatnow
>
>now the grid in form2 works only once ????
>form1 calls form2
>searching and displaying the results in mygrid
>doubleclick = release form2 and return a value to form1
>form1 calls form2 again
>searching and displaying the results in mygrid
>doubleclick does not work ????????????????
>
>when deleting the first line of the doubleclick event in the class mygrid everything is ok again?
>
>
>then i tried mygrid with the 2 lines of code in textbox1 of column1 and with 1 line in
>textbox1 of colum2
>
>now the doubleclick in form2 works several times when i click on a textbox in column2 of the grid
>when doubleclicking on textbox in column1 the grid works only once???
>next call of form2 and the grid does nothing when doublecklicking on a textbox ???
>in form2 there are only to lines of code with thisform.l_wasdoubleclicked
>at init
>thisform.l_wasdoubleclicked = .F.
>
>at unload
>if thisform.l_wasdoubleclicked = .T.
>return value
>endif
>
>any ideas ???
>Albert