I have a text box in a form. At any time I can use:
Since .Value is the default property of a text box, it works and MyString will be equal to whatever I have in the text box.
But if I use :
I receive an error telling me I can not assign an object to a tempvar. I have to use :
and it works.
Is there any reason why tempVar doesn't use the default property of objects?
Makefile:
MyString = MyTextBox
Since .Value is the default property of a text box, it works and MyString will be equal to whatever I have in the text box.
But if I use :
Code:
TempVars("MyTempVar") = MyTextBox
Code:
TempVars("MyTempVar") = MyTextBox.Value
Is there any reason why tempVar doesn't use the default property of objects?
Last edited: