10
我想创建一个过程,其参数也是一个过程。可能吗?
我创建要用于一些程序如下参数:如何将MethodName作为VBNET中过程的参数传递
Private Sub Jump(xStr as string)
Msgbox xStr & " is jumping."
End Sub
Private Sub Run(xStr as string)
Msgbox xStr & " is jumping."
End Sub
此过程应该调用上述步骤:
Private Sub ExecuteProcedure(?, StringParameter) '- i do not know what to put in there
? ' - name of the procedure with parameter
End Sub
用法:
ExecuteProcedure(Jump, "StringName")
ExecuteProcedure(Run, "StringName")
谢谢!我的问题现在已经解决了。 – 2012-01-02 05:14:44
+1,因为它通常是第三方投票的任务,而不是OP,我是第三方。 – Lion 2012-01-02 05:19:36