Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a copy of the existing class
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00994181
Message ID:
00994451
Views:
18
Martin,

I think, something really serious happened with my computer and I don't know what to do to fix it :(

We're using MereMortals framework. When I try to use builder with my class it gives me the error message that dataenvironment class could not be instantiated. I created a new library, moved the class there, created a new DE class and I'm getting the same error messages again.

But moreover, I tried with my colleague's classlib and I'm receiving the same error messages. However, the same classlib by my colleague works on another machine. I also noticed that I open that class, try builder, receive an error, exit the class without saving, but the timestamp for VCT file changes, while time for VCX remains the same!

What happens? Looks like I may need to re-install VFP or apply some other drastic measures.

>Hi Nadya,
>
>LPARAM lcOClass,lcOClasslib,lcNClass,lcNClasslib
>* lcOClass    - Class name
>* lcOClasslib - VCX name
>* lcNClass    - New class name
>* lcNClasslib - New VCX name
>
>LOCAL lcTClasslib
>lcTClasslib=SYS(2023)+SYS(2015) && Temp. VCX
>
>lcOClass=ALLT(lcOClass)
>lcNClass=ALLT(lcNClass)
>
>CREATE CLASSLIB (lcTClasslib) && Create temp. VCX
>* Add class
>ADD CLASS (lcOClass) OF (lcOClasslib) TO (lcTClasslib)
>IF !UPPER(lcOClass)==UPPER(lcNClass)
>   RENAME CLASS (lcOClass) OF (lcTClasslib) TO (lcNClass)
>ENDIF
>ADD CLASS (lcNClass) OF (lcTClasslib) TO (lcNClasslib)
>*CLEAR ALL
>DELE FILE (lcTClasslib+".*")
>
>
>MartinJ
>
>>Hi everybody,
>>
>>I'm not sure sure what did I wrong, but I keep getting some errors about DataEnvironment. So, I want to start fresh. I want to create a new class and copy all the properties I created for the other class with their comments and initial values and custom methods with the comments and code and add them to this new class.
>>
>>Do you know utility, which would help me to do this?
>>
>>Thanks a lot in advance.
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