Article ID: 186143 - Last Review: July 13, 2004 - Revision: 3.1 How To Use the CallByName Function to Run a Procedure
This article was previously published under Q186143 On This PageSUMMARY
The CallByName function provides Visual Basic 6.0 with the ability to call
a property or method of an object using a string at run-time. Unlike the
previous versions of Visual Basic in which methods and properties had to be
known at design-time, the CallByName function allows for a great deal of
flexibility at run-time. The use of this function is limited to OLE servers
and Visual Basic class modules.
MORE INFORMATION
The following sample demonstrates how to use the CallByName function to
call a method, a Property Let, and a Property Get. For more information on
the CallByName function, please refer to the Visual Basic Help Files and
the Books On-Line.
Steps to Create Sample Project
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations |






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
