Yes, using Reflection:
Dim objType As Type
Dim d As DateTime
Dim objResult As Object
objType = d.GetType()
objResult = objType.InvokeMember("Now",
Reflection.BindingFlags.GetProperty, Nothing, d, Nothing)
MessageBox.Show(objResult.ToString)
--
Carlos J. Quintero
MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
"Byron Hopp" <bh***@matrixcomputer.com> escribió en el mensaje
news:ev**************@TK2MSFTNGP14.phx.gbl...
Is there a way to execute a function from a text representation of the
function.
Like,
Dim strFunction as String
strFunction = "Now()"
Is there any function, or process I can call and pass to it strFunction
where when it executes it will return what Now() returns?
Thanks,
Byron...