Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Something that's been getting on my nerves!
Message
 
 
To
19/10/2000 04:14:10
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00430493
Message ID:
00431417
Views:
11
>I don;t know about you, but I have a reset.prg that sits in the root directory of the project. It has come second nature to just go up a line or two in the command window and press enter (of course you have to type it in the first time). Hey presto, everythings back to how I want it :-)
>
>Here's a sample of mine.
>
>clear prog
>on key label "escape"
>close proc
>clear all
>release all
>set sysmenu to defa
>set exact off
>deactivate wind debug
>release wind trace
>keyboard "modi proj proclog{enter}" clear
>on error
>
>Hope this helps
>
>Jason

Hi Jason,

To extend your idea a little bit: create a macro for cleaning. For instance, I have bunch of useful macros in my VFP Environment. In my case clearing environment is on F4. Also don't forget to reset menu to default.

This is my 'clearing' procedure: (all commands placed directly in macro):
set sysmenu to default
ON ERROR
ON SHUTDOWN
CLEAR EVENTS
cancel
close all
clear all
On Error
CLEAR


>
>
>>There is no other way? I absolutely, definitely, totally, unconditionnaly have to issue a 'CLOSE ALL' command?
>>
>>If that's the case, you're suppose to finish your classes and be sure that everything is there and working properly before you start using it? Not the best way to go! Is there any new 'RELOAD' command in VFP7 that adresses this issue?
>>
>>Stephane.
>>
>>

>>>>Maybe it's simple and maybe it's not but I sure hope someone will help me with this.
>>>>
>>>>Whenever I'm working with a project that's using some classes I built and I change something in one of those classes, I ALWAYS have to close my FoxPro session completely and re-open everything for the changes to take effect. How can I change this? I mean, how can I reload a class after it's been changed?
>>>>
>>>>Thanks in advance, Stephane.
>>>
>>>RELEASE ALL
>>>CLEAR ALL
>>>CLOSE ALL
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform