Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error 1733
Message
De
30/05/2019 03:04:53
Walter Meester
HoogkarspelPays-Bas
 
 
À
29/05/2019 12:07:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
01668856
Message ID:
01668870
Vues:
90
>Hi,
>
>I am facing error :
>"Classdefinition fs_frmmaintenance is not found"
>The code line causing this:
>This.Newobject("fs_Maintenance1","fs_frmMaintenance")
>The class is in the classlib which is set with set Classlib to and most curious is that a few lines above you will find:
>
>This.Newobject("fs_Actions1", "fs_Actions")
>which executes normaly
>Both fs_Actions and fs_frmMaintenance are in the same Classlib
>
>help file is not very helpfull in this respect, besides it states
>" The class definition specified in a CREATEOBJECT( ) function cannot be located. " which is wrong as this is a Newobject and not createobject
>
>I am puzzled.
>
>Any advise is welcome
>
Beste Koen,

Are you by any chance running this code outside the executable or in EXECSCRIPT() ? If so, the above could be explained as the code you are running cannot find the class. The code then is not able to look for classes inside the EXE.

The fact that the other class could be found might be due to the fact that VFP caches classes once they are loaded for the first time. Subsequent object creation will load the class definition from cache rather than from the class library or PRG.

Walter,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform