|
-
May 22nd, 2007, 04:24 PM
#1
Thread Starter
New Member
How can I calculate the total time a user is connect??
Hi, I need to calculate the total time a user is connected in my program?? How can I do this?? Since the user logon.
Thanks a lot
-
May 22nd, 2007, 04:26 PM
#2
PowerPoster
Re: How can I calculate the total time a user is connect??
 Originally Posted by heatcat
Hi, I need to calculate the total time a user is connected in my program?? How can I do this?? Since the user logon.
Thanks a lot 
Using an array (if you have tons of users you want to track) and the gettickcount() command (search vbforums for it if you need more help) should be enough...use 2 variables, one for start and one for finish, and the difference is in milliseconds (1000 = 1 second)
Well, everyone else has been doing it :-)
Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
Expect more to come in future
If I have helped you, RATE ME! :-)
I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!
And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|