Hi everybody,
I'm completely new to VB (I'm on 6.0 for this project), but I'm not new to programming. My problem is as such: I have a string that I want to use to call a method of a specified object. I'm using the Microsoft Agent class, and here's what I'm doing (in a nutshell):
It fails on Merlin.sAction. I know I can do this in C/C++ derrived web languages (such as PHP and Perl), but I'm not sure how o do this in VB. Help is appreciated.Code:Private Sub Form_Load() Agent1.Characters.Load "Merlin", "merlin.acs" Set Merlin = Agent1.Characters("Merlin") Dim sAction As String sAction = "Show" Merlin.sAction Merlin.Play ("Greet") 'etc Merlin.Hide End Sub
Cheers!




Reply With Quote