Knowledge/Visual Basic 6+
[VB6] What is Me.Caption
네코냥이
2018. 3. 26. 08:29
vb6 What is Me.Caption
Hi, starting out in vb and working through some exercises and am confronted with a line of code
OldCaption = Me.Caption
The question is what is Me."xxxxxxxxx" and what applications can it be used for.
Many thanks in advance...Andy
--------------------------------------------------------------------------------------------------------------------------------
What is Me?
Me is the form itself. It is just a shorthand of using the form name. So Me.Caption and Formname.Caption is the same.
OldCaption = Me.Caption
Above code simply saves the caption of the form to a variable named OldCaption.
hongjun