Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why 'Use' don't flush the data when close file?? ?_?'
Message
From
19/02/1998 21:32:36
 
 
To
19/02/1998 12:32:19
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00079741
Message ID:
00080003
Views:
48
>>>>I am using the command window to type following command but table
>>>>do not change! ~_~;
>>>>
>>>>use MyTable
>>>>browse
>>>>* do some edit and change on MyTable
>>>>use && Close table
>>>>
>>>>But when I open it again, nothing change....
>>>>use MyTable
>>>>browse
>>>>* Find the previous work not Save!
>>>>use && ?.?' I have set AutoSave to .T. already!!
>>>
>>>
>>>Just a thought...Sounds like you have this table buffered. If so, tableupdate() should be used to write changes to 'MyTable'.
>>>
>>>john.
>>
>>
>>I posted the same thing, but I was thinking wouldn't you get the error uncommited changes, preventing you from closing the table?
>
>Everything is possible, especially if someone issues something like
>ON ERROR wait window "" nowait
>:)

well, I just copy the example of ON ERROR at the beginning of Program
and paste the Errhandler at end.
The example is very good, help a lot on debug!
But fail to stop at the error procedure for debug....
My Errhand coding:

ON ESCAPE RESUME
ON SHUTDOWN QUIT

ON ERROR DO errhand WITH ;
ERROR( ), MESSAGE( ), MESSAGE(1), PROGRAM( ), LINENO( )

* Main Program.. Createobject()
* read events....

QUIT
*** Sure Not Further Execution, escape Error ***

#DEFINE DEBUGING .T.

PROCEDURE errhand
PARAMETER merror, mess, mess1, mprog, mlineno
CLEAR
=MessageBox('Error number: ' + chr(9) + LTRIM(STR(merror)) + repl(chr(13),2) +;
'Error message: ' + chr(9) + mess + repl(chr(13),2) +;
'Line of code with error: ' + chr(9) + mess1 + repl(chr(13),2) +;
'Line number of error: ' + chr(9) + LTRIM(STR(mlineno)) + repl(chr(13),2) +;
'Program with error: ' + mprog, 48, "Error Message Found!!")
ON ERROR && restore system error handler
IF DEBUGING
DEBUG
ENDIF
* RETURN .F. && For Propose
ENDPROC

But... on Debug window, only state at READ EVENTS code...
So, I fail to move to pointer on text to trace the current value of
each variable... ~>_<~
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Reply
Map
View

Click here to load this message in the networking platform