Another newbie question from someone struggling through the FPW to VFP transition learning curve....
I have already been informed that my feeble attempts to-date at VFP programming have been a crude combination of FPW in-line coding and VFP (instead of leaping head-first into full OOP) which, in itself, have created some of my problems.
Anyway....
I have a PRG which uses an SQL query to build a "working" table from an original table.
I then launch my FORM with a DO FORM <myform>
On the form I have a grid using the "working" table's alias as its recordsource.
I am set "Optimistic" and "Default Data Session"
Things display nicely and "appear" to work.
The user enters changes into the Grid.
Then the user clicks on the Commit button which executes a FUNCTION back in the PRG before returning to the FORM for more work.
In the FUNCTION Commit the "working" table is referenced and changes are supposed to be committed back to the original table.
BUT the table shown in the Grid now has none of the changes made by the user within the FORM.
How do I get the changes made to the Grid's "table" to be reflected in the actual "working" table?
Your suggestions and advice are appreciated.
Thanks,
I_Forgot
I have already been informed that my feeble attempts to-date at VFP programming have been a crude combination of FPW in-line coding and VFP (instead of leaping head-first into full OOP) which, in itself, have created some of my problems.
Anyway....
I have a PRG which uses an SQL query to build a "working" table from an original table.
I then launch my FORM with a DO FORM <myform>
On the form I have a grid using the "working" table's alias as its recordsource.
I am set "Optimistic" and "Default Data Session"
Things display nicely and "appear" to work.
The user enters changes into the Grid.
Then the user clicks on the Commit button which executes a FUNCTION back in the PRG before returning to the FORM for more work.
In the FUNCTION Commit the "working" table is referenced and changes are supposed to be committed back to the original table.
BUT the table shown in the Grid now has none of the changes made by the user within the FORM.
How do I get the changes made to the Grid's "table" to be reflected in the actual "working" table?
Your suggestions and advice are appreciated.
Thanks,
I_Forgot