Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Non visual classes
Message
De
11/08/1999 17:38:56
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00252749
Message ID:
00252754
Vues:
10
Hi Dan,

>However, now my main.prg will not execute passed this when I run it. Am I doing something wrong, or should I just be putting it someplace else?

Define class is like proc or function, when the program sees this it assumes the current one is over. So you place all your define classes at the end of your code, and call them with CreateObject:
wiat window 'Main.prg'
oObj=CREATEOBJECT('MyClass')
wait window 'End of Main.prg'

define class MyClas....

...enddefine
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform