Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this a normal VFP7 behavior?
Message
De
17/01/2002 14:21:40
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Is this a normal VFP7 behavior?
Divers
Thread ID:
00606285
Message ID:
00606285
Vues:
48
Hi all,

Is this a normal VFP7 behavior? I've noticed, so far, that calling UDFs within UDFs does not require THIS.UDF() but for inherited procedures (ie. Init(), Destroy()), I have to use THIS.UDF().

Or was it already like this since VFP5 or 6?
x = createobject('test')
with x
   x.RunMain()
endwith
x = null

define class test as session
   function RunMain()
      .HelloWorld()  && not enclosed inside WITH/ENDWITH
      .Foo()         && but works!!!
   endfunc
   function HelloWorld()
      ? "Hello World"
   endfunc
   procedure Foo
      ? "FOO!!!"
   endproc
   procedure destroy
      .Foo()         && not enclosed inside WITH/ENDWITH
                     && but does not work!!!
   endproc
enddefine
ramil
~~ learning to stand still
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform