Hi all, is it possible to call a function based on the name of a string?

What I want to do is treat the contents of "TextVariable" as a function name and then call it...

i.e. something similar to this:

VB Code:
  1. Sub Command1_Click()
  2.     Msgbox "Button pressed"
  3. End Sub
  4.  
  5. Sub Command2_Click()
  6.     Dim TextVariable as String
  7.  
  8.     TextVariable = GetFunctionNameFromDatabase()
  9.     'i.e. TextVariable = "Command1_Click()"
  10.  
  11.     Call ContentsOf(TextVariable)
  12. End Sub

cheers
- Mike.