Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activerow of grid
Message
From
16/08/1999 22:49:45
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00254280
Message ID:
00254386
Views:
20
Hi Jim,

The control is a combo filled via a SQL statement into a cursor. I collect the part# for the combo, partdesc for another column in the grid and the partprice for another column. The lost focus of the combo assigns values to the respective columns of the grid. I'm collecting the price column value on the gotfocus of the combo and save it to an invisible textbox on the form. I then use it as a pre-edit - post-edit for a running subtotal textbox. If I don't save the current partprice value at the got focus of the combo the lostfocus overwrites the price with the lookup price, which I want it to.

The problem is, if I have 2 or more rows of data and I wish to edit the first row of the grid, the got focus: oldvalue = thisform.grid1.column9.text1.value is being taken from the last row of data and not the current row or record. which throws off the running total. Seems it should be pretty straight forward.
Tony
Skill comes from Diligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform