Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a normal VFP7 behavior?
Message
From
17/01/2002 14:21:40
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Is this a normal VFP7 behavior?
Miscellaneous
Thread ID:
00606285
Message ID:
00606285
Views:
47
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
Next
Reply
Map
View

Click here to load this message in the networking platform