Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object not available in procedure
Message
De
14/05/2008 08:40:39
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01316922
Message ID:
01316929
Vues:
17
Borislav reminded me that it's PRIVATE I needed. Doh! I knew that.

It's just some testing code where I'm creating the object in the main part and calling different testing procedures depending on what scenario I'm working with.

>The LOCAL variables are only visible within the procedure/function/method in which they are created. What was your point in creating myObject outside of the procedure?
>
>>I have a PRG that the object goes out of scope when a procedure is called. Do I need to pass it in somehow?
>>
>>
>>LOCAL myObject
>>
>>MyObject = CREATEOBJECT("MyClass")
>>
>>DO MyProcedure
>>
>>RETURN
>>
>>PROCEDURE MyProcedure
>>
>>   * MyObject is not available
>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform