Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem to recreate a class
Message
De
28/06/2002 04:37:24
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Problem to recreate a class
Divers
Thread ID:
00673182
Message ID:
00673182
Vues:
58
Hi All,

I try to use a kind of RAD toll to avoid some recompile.

somwhere in my classes I put
loForm = NEWOBJECT('MyForm','C:\MyPath\MyLib.VCX')
This classlib is not included in the project, there is also no other class MyForm.

The classlib is stored at the location as named beyond.

The code works fine excepted I start to change the class.

May will occur under the following circumstances:
I have created the object from the class at least one time.
I modify the class (modification is done under a different instance of VFP)
I save the modified class
I try to recreate the object in my programm (programm was never stopped)
I get ERROR 1733
If I debug now and do MODIFY ? OF C:\MyPath\MyLib.VCX the classlib is not visible.

I've played around for a while and figure out:

MODIFY ? OF C:\MyPath\MyLib.VCX will show the class until I run the NEWOBJECT

If no other class of the classlib is in memory in the moment of creation, set classlib to and REDO the creation creates the object, if there is something from the lib in memory no 'repair' will occur.
It makes no difference to use CLEAR CLASS, SET CLASSLIB TO, SET CLASSLIB TO Library, NEWOBJECT, ADDOBJECT, CREATEOBJECT in any variation.

It makes also no difference to play with the Instance to modify, no use of CLEAR, CLOSE, RELEASE or even the close the instance changes anything.

What do I miss to reopen the classlib?

TIA

Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform