I use Visual Basic 6
I declare
PUBLIC vnbt as interger, in SubMain.
I put a value to
vnbt=adodc1.recorset.item(0) when a dblclick() proc.
is used in the TDBGrid, in the form1 (choose one of the many items in the grid).
In dblClick proc., the last line programming is
form2.show
In this form, the first time, the value is correct.
But when I return in form1 with
form2.hide and I choose another item in the TBDGrid, the first value still in memory.
I named a label with the value of variable on the form1 and when I make a dblclick, the good value showed in form1 and the first value stay for the form2.
Can you help me on this problem ?
Thank's

[/b][/code]