×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Grids

Grids

(OP)
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?

        Thank you,
        ge@pctechnology.fsnet.co.uk


RE: Grids

Hmm...FoxStudent, are you a former 2.6'er?  Just wondering, because when I transitioned from Browses to Grids, I spent several months in the insane asylum.

The answers to both your questions lie in the RecordSource you are using for the Grid.  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 delete statement), or by allowing your user to do the same with the little delete box to the left of each row.

Again, assuming your RecordSource is a table or cursor, you can use a scatter command to place the field contents into memory variables -- but why?

Out of curiousity, where in the UK are you?

Robert Bradley

FoxDev - Visual FoxPro Development

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close