Last post Oct 14, 2008 10:40 AM by DkUltra
Oct 14, 2008 07:03 AM|ajaysh81|LINK
I need a help in using vb functions in callByName.
I am using vb.net
Suppose i wanna execute all those methods which are supplied by user.
so user enter in his text box like
then i have to execute it with the help of callByName method.
user is allowed to enter any vb string function.
i was trying to call it by
strRes = CallByName(strObj2, "Left", CallType.Method, arrVal2)
but i am unable to pass microsoft visualbasic object as first parameter in strObj2.
How can i pass visualbasic object as first parameter.
How can i call left method of visualbasic with the help of callByName
Please provide me help
Oct 14, 2008 10:40 AM|DkUltra|LINK
A person could use reflection avoiding callbyname.
Here is an example
Hope this helps