PDA

Click to See Complete Forum and Search --> : help activate a module from a form.


MiDaWe
Nov 25th, 1999, 07:05 PM
Hey,

This is the situation, I have an app that sits in the systray. When the user left clicks on the icon I want a module to be activated. How do I do it?

(I already have all of the code for my app! All I need is to know the syntax for activating the module. I keep getting an error saying, "expected variable or procedure not module.")

Can anyone help me?


------------------
Thanks,
MiDaWe

Inhumanoid
Nov 25th, 1999, 07:16 PM
What do you mean ?? A bas-file ?
The way to call the module depends on what sub or function you want to triggered inside that module. (just call the sub or type in the function to call it)

If Your module is a standalone program you should compile it and then launch it with Shell.

MiDaWe
Nov 25th, 1999, 08:18 PM
Hey,

I think that you have a good idea. So, I compiled the module and tried using the shell function to execute it, but as a newbie I am still have a bit of trouble with syntax. Could you please help.

This is what I have:

Shell (ActiveSS.exe)

I use this because both EXE files will be in the same directory(whatever they are installed to.)

The error I get is that a "variable is not defined."

Somebody help please.


------------------
Thanks,
MiDaWe

Inhumanoid
Nov 25th, 1999, 08:27 PM
This will launch ActiveSS.exe if it is in the sames dir as the application this code is pasted into



Dim RetVal
RetVal = Shell(App.path & "\ActiveSS.exe", 1)



You got your error because you forgot to quote ActiveSS.exe ( like : "ActiveSS.exe"). The compiler therefore thinks it is a variable, wich it is not...

Have a good one

[This message has been edited by Inhumanoid (edited 11-26-1999).]

MiDaWe
Nov 25th, 1999, 08:38 PM
Hey Thanks,

That works fine.



------------------
Thanks,
MiDaWe