Sending the name of a control to a module *Resolved*
Hey guys!
I have a form and a module.
My form have an object called flash and my module have a function.
I am trying to send trought the function the name of the object, but I am not having success... Nothing is happening. Nor even an error.
In my form I have the following function call:
PegaFlash 101, "CUSTOM", "logo.swf", Me, Flash
In my module I have the following function:
Public Sub PegaFlash(i As Integer, swf As String, arquivo As String, F As Form, O As Object)
.
. codes...
.
F.O.Movie = sEnv & arquivo
End Sub
The F variable is getting correctly the name of the form that I passed. But the Object flash is not being received by the function..
If I change the last code to the following:
F.Flash.Movie = Senv & arquivo
everything will run fine...
What am I doing wrong?
Thanks in advance,
Elminster