Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

About grids

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have two forms, the 1st has a grid (form1) ,the 2nd has a grid and a textbox (form2), the last one is related with the activerow, when I leave 2nd grid all must stored in 1st grid.
I make this code in kepress's form:
[ If nKeyCode = 13
If thisform.grid2.activecolumn=4
Thisform.txtqt_liv.visible=.t.
Thisform.txtqt_liv.top=(thisform.grid2.relativerow*18.5)+16
This.keypreview=.f.
Selecttab_vente
Seek article.cod_art
If found()
Thisform.txtqt_liv.value=str(tab_vente.qt_liv)
Endif
This.txtqt_liv.gotfocus
Endif ]
Notes, "This.txtqt_liv.gotfocus" does'nt got the focus in this textbox
1)How can I got it?
I try all controls: Gotfocus, Setfocus, When but without result.
2) The 1st grid dosen’t “append blank”, it store only the last field but in the table exist.
THANKS FOR ANY HELP.
 
I'm a little confused. Is the textbox on form2 a cell in the grid or seperate?
-Pete
 
Fafi,

Refer to your other thread:

About Grids...
thread184-43207 Jon Hawkins
jonscott8@yahoo.com

The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top