Error while using pack command -
05-10-2004
, 08:59 AM
pls ignore my previous mail.. there was some typo mistake....
Hi,
I'm in the stage of learnig the visual foxpro.
Through wizard, I have created form which has all the builtin command
buttons like TOP,NEXT,ADD,DELETE etc. I have written some foxpro
statement in the event procedue "add.click". I have some records in the
database, after deleting the records, the records are marked for
deletion, but it is not deleting the records permanently. Initally it
was deleting the records, after adding the some statement in the
add.click event procedure, this was not deleting. Pls let me know what
was wrong in this. Do I need to add some statement in the delete.click
event procedure. ?
Since I'm having the above issue, I have added the below statement in
the exit.click button.
dodefault()
use customer
pack
use
This works fine as long as I work from foxpro command button window.
But, when I make exe file and run the program, everything works fine,
but while clicking exit button. It displays an error saying
that "database must open expilicitely". I think the pack is creating a
problem.
Pls let me know solution on this.
Thanks
AKN |