Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NewObject & Programmatically defined classes
Message
 
 
À
06/09/2001 05:43:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00553005
Message ID:
00553016
Vues:
19
Sure.

I remember, there was a bug for VCX class libraries - when class library from another EXE/APP is already loaded in the memory (you can check if VCX exists using SET('CLASSLIB')), NewObject generate error. Probably the same situation is with NewObject() for program files. Just look in SET('PROCEDURE') list of procedure and see if your app or program from that app is not in that list. If yes, use "release procedure ..." command to clear it from memory. After that try again:

NEWOBJECT("cls2","ClassDef2.PRG","TESTCLS.APP")

Above should work accordingly to help.




>>Then
>>
>>o2=NEWOBJECT("cls2","ClassDef2","TESTCLS.APP") && no extension
>>
>With no extension, vcx is default extension.
>
>MarianL
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform