Can I in any way, pass a parameter to a Qeued sub?

I.e, I have a sub named ReadFile. I know I can do things like

Queue "ReadFile"

Sub ReadFile()
' do whatever
End Sub 'ReadFile.

But can I do anything like:

FN = "C:\test.txt"
Queue "ReadFile( FN )"

Sub ReadFile( Filename )
' do whatever
End Sub 'ReadFile.

When I tried the above approach, I had an error thrown at me. So apparently, I 
cannot do it exactly that way. My question is, if there is another easy work 
around, Except from setting a Global variable, and have the ReadFile sub handle 
that one.



Reply via email to