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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grids

Status
Not open for further replies.

FoxStudent

Technical User
Feb 24, 2000
85
GB
Is there any way that data from a grid row can be read into memory variables? How can I delete a record from a grid?<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thank you,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="mailto:ge@pctechnology.fsnet.co.uk">ge@pctechnology.fsnet.co.uk</A><br><br><br>
 
Hmm...FoxStudent, are you a former 2.6'er?&nbsp;&nbsp;Just wondering, because when I transitioned from Browses to Grids, I spent several months in the insane asylum.<br><br>The answers to both your questions lie in the RecordSource you are using for the Grid.&nbsp;&nbsp;Assuming your RecordSource is a table or updateable cursor, you can remove a record from the Grid by simply removing it from the table (in other words, issuing a <FONT FACE=monospace>delete</font> statement), or by allowing your user to do the same with the little delete box to the left of each row.<br><br>Again, assuming your RecordSource is a table or cursor, you can use a <FONT FACE=monospace>scatter</font> command to place the field contents into memory variables -- but why?<br><br>Out of curiousity, where in the UK are you? <p>Robert Bradley<br><a href=mailto: > </a><br><a href= - Visual FoxPro Development</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top