Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error 1733
Message
De
29/05/2019 12:44:34
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
29/05/2019 12:07:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
01668856
Message ID:
01668857
Vues:
77
J'aime (1)
>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

Newobject() (both method and function) require that the 2nd parameter be the class library, and the extension for it is, by default, .prg - because it was, IIRC, made to accommodate the prg based classes. Try with adding .vcx to the name. .NewObject() may or may not care about set("classlib"), I'm not sure.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform