Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Name Calling Conflict - Don't Call Me That
Message
De
22/05/1997 13:48:02
 
 
À
21/05/1997 12:40:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00033110
Message ID:
00033308
Vues:
42
>I never have attempted to use the same class
>in both a form and by hand-coding and I am
>running into a problem.
>
>Assuming the class has a character property
>called myString:
>
>By hand-coding:
> oXYZ=CreateObject("myclass")
> and then
> =oByHand.myMethod()
>
>By form:
> Just drop it on the form
> and then
> =thisform.myMethod()
>
>
>BUT BUT BUT
>
>PROCEDURE myMethod
>* by form
>WAIT WINDOW thisform.myString
>* |
>* |<---- CONFLICT !!!
>* by hand |
>WAIT WINDOW oByHand.mystring
>*
>RETURN
>
>How do I resolve this calling conflict?
> "thisform." versus "oByhand."
>
>Thanks
>Gene


What would happen if you used 'This' instead of 'Thisform'?

GeneS
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform