(Msg. 1) Posted: Tue Oct 20, 2009 4:02 am
Post subject: How to set the time for particular funtion? Archived from groups: microsoft>public>outlook>program_vba (more info?)
Hi,
Could any one tell me how to set the particular time for my function either
using Timer(not sure if it works only in Form) or Thread or any other method?
I want to kill that function if id doesn't return in specific time say 1
minute.
(Msg. 2) Posted: Tue Oct 20, 2009 9:43 am
Post subject: Re: How to set the time for particular funtion? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Without knowing how that function is written or what language you're using
it's rather difficult to know what to recommend.
In general, if you are using VBA or VB you are using a single threaded
environment and you are best off writing your function, whatever it is, to
handle the timing for you. That means a loop, possibly with a limit counter
or a Sleep statement that when exceeded leads to a code fork that exits the
function.
However, that's general and not specific since no one but you knows what
your function is or how it's constricted or what it's trying to do.
"paresh" <paresh.TakeThisOut@discussions.microsoft.com> wrote in message
news:6FF93BEF-ABC8-4AD8-AE7C-643E9D5F9608@microsoft.com...
> Hi,
>
> Could any one tell me how to set the particular time for my function
> either
> using Timer(not sure if it works only in Form) or Thread or any other
> method?
> I want to kill that function if id doesn't return in specific time say 1
> minute.
>
> Thanks.
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum