Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use THIS or THISFORM in Form?
Message
From
14/11/2002 12:36:46
 
 
To
14/11/2002 11:55:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00722754
Message ID:
00722777
Views:
14
I personally choose THISFORM over THIS because I am more likely to call it from another object on the form (from moving things around or copying/pasting from one form to another) and not move it to a class. If the hiercharchy changes, THISFORM will still work. However, if you mostly work with classes you may prefer the reverse.

Tracy

>When building new forms, I found myself repeating calls to business objects dropped on the form. About half of the calls were This.Bizobj.Somefunction() and the other half Thisform.Bizobj.Somefunction().
>
>In this instance, THIS and THISFORM were the same, so I'm wondering which would be the better to use, and why. Neither Help or HackFox 7 shed any light on this thought.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform