WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to set the time for particular funtion?

 
   Home -> Office -> Programming VBA RSS
Next:  3D array SUMIF  
Author Message
paresh

External


Since: Mar 23, 2009
Posts: 2



(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.

Thanks.
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 2977



(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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"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.
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Programming VBA 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
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support