TorrediPisa
Programmer
Good Morning(Evening) to everyone
I am trying to understand the actual usage of the Function
CallByName.
Reading the guide, it is a function used to manipulate objects by either executing a method or setting the value of a property
Usage: CallByName(object, procedure, calltype, args)
For example,I have a Text1 in a form: if I write:
CallByName Text1, "ForeColor", VbLet, vbRed
I will obtain the same as:
text1.ForeColor = vbRed
Probably I have indicate a not much meaningful example.
Could you please explain me an example where the importance
of this function apperas more relevant.?
Thank You for Yr kind help.
Best Regards
TdP
I am trying to understand the actual usage of the Function
CallByName.
Reading the guide, it is a function used to manipulate objects by either executing a method or setting the value of a property
Usage: CallByName(object, procedure, calltype, args)
For example,I have a Text1 in a form: if I write:
CallByName Text1, "ForeColor", VbLet, vbRed
I will obtain the same as:
text1.ForeColor = vbRed
Probably I have indicate a not much meaningful example.
Could you please explain me an example where the importance
of this function apperas more relevant.?
Thank You for Yr kind help.
Best Regards
TdP