PabloMDiez
New member
- Joined
- Jan 28, 2010
- Messages
- 3
- Programming Experience
- 3-5
Hi there!
I'm trying to solve a problem with my project.
I got a Sub which processes a code, and then it does whatever the code said.
Example.
Code = "Black" -> Turns screen black.
Code = "OFF" -> Turns off the PC.
And so on.
If I call that Sub from Immediate console, It works perfectly.
But if that Sub is called from an event, It does nothing, and usually throws an Exception.
I read somewhere that I can fix this by using Threads, but I don't understand how that can help and make it work.
Could you help me?
If needed, I can post an outline example of the code.
PS: Excuse my english
I'm trying to solve a problem with my project.
I got a Sub which processes a code, and then it does whatever the code said.
Example.
Code = "Black" -> Turns screen black.
Code = "OFF" -> Turns off the PC.
And so on.
If I call that Sub from Immediate console, It works perfectly.
But if that Sub is called from an event, It does nothing, and usually throws an Exception.
I read somewhere that I can fix this by using Threads, but I don't understand how that can help and make it work.
Could you help me?
If needed, I can post an outline example of the code.
PS: Excuse my english