|
-
October 17th, 2001, 04:02 PM
#1
variable for methods
hello all,
Is it possible to use a variable for methods?
In the following example, add_two() and substract_two() are two methods, but I do not know which one will be called during coding.
======================
Set m_obj = AdvCreateObject("MyObject.myObject")
var_method = "add_two"
result = m_obj.var_method(11, 22) '??????
var_method = "substract_two"
result = m_obj.var_method(11, 22) '??????
======================
thanks!
_Zhining Zhang
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|