DIMENSION laResult(1,1) laResult(1,1) = 0 SELECT; SUM(income1.total); FROM income1; INTO ARRAY laResult ntotal = laResult(1,1) RELEASE laResultHTH
LPARAMETERS nKeyCode, nShiftAltCtrl >if nkeycode=24 >select income1 > append blank >This.Parent.Parent.Column1.combo1.setfocus() >endif>I want the user will get the focus of the next line by pressing on the arrowdown key (number 46), every thing is good, but the user getting the focus on the right column, how can I give him focus on the left column?
select income1 >itotal=income1.quantity*income1.amount >replace income1.total with itotal >select income1 >sum(income1.total)to ntotal >ThisForm.txttotal.value=ntotal>the problem is that I getting a random message (total 1473 etc) with under line, who is not o.k, I or VFP (I have the line in method who I using with this every lost focus in the grid and after few times my form starting to vanish from all the messages)?
sum (income1.total) to ntotal>Thanks in advance