This pointer

Info about design forms features
PetrS
Site Admin
Posts: 181
Joined: 11 Jul 2014, 13:55

This pointer

Postby PetrS » 21 Oct 2015, 06:56

size=150This pointer/size

The 'this' keyword refers to the current instance of the class/CLC.
The meaning and behaviour is the same as url=https://msdn.microsoft.com/cs-cz/library/dk1507sz.aspx'this' keyword in C#/url
It can be used in class constructor (see example below) or in class functions. Using 'this' in global scope (main script) is possible, but NOT recommended

See attached example for more details.
Attachments
ThisPointer.cls
(22.18 KiB) Downloaded 412 times
Ing. Petr Slepicka
DesignForms Online
Engineering calculations online - EuroCode, AISC, statics
Automate your static calculations today!

Return to “Design forms features”

Who is online

Users browsing this forum: No registered users and 4 guests