| | |
I'm an apprentice.Please
![]() |
•
•
Join Date: Nov 2006
Posts: 7
Reputation:
Solved Threads: 0
I'm an aprentice to VB,but have a little knowledge and interested in doing experiments.
What i want to know is,how to get the time difference?
text1.text includes the 1st updated time and text2.text includes the 2nd updated time.text3.text must be the difference between two times.
please teach me to do this.
What i want to know is,how to get the time difference?
text1.text includes the 1st updated time and text2.text includes the 2nd updated time.text3.text must be the difference between two times.
please teach me to do this.
HI
you need to set the Time Difff in text3 control right, then use the following code under any event
text3.text=DateDiff("n",cdate(text1.text),cdate(text2.text)
it is suggeted to check for the valid time entry by using the isdate function
Ex:
if isdate(text1.text)=false then
msgbox "Not Valid Time"
end if
hope this will help you,
regards
Venkatramasamy Sn
you need to set the Time Difff in text3 control right, then use the following code under any event
text3.text=DateDiff("n",cdate(text1.text),cdate(text2.text)
it is suggeted to check for the valid time entry by using the isdate function
Ex:
if isdate(text1.text)=false then
msgbox "Not Valid Time"
end if
hope this will help you,
regards
Venkatramasamy Sn
![]() |
Similar Threads
- Please Help Me (Viruses, Spyware and other Nasties)
- Hello Everyone!!! (Community Introductions)
- Greetings from San Diego CA!!! (Community Introductions)
- no WxPython here? (Python)
- Ram upgrade problems/nightmares (Motherboards, CPUs and RAM)
- Seeking E-book on Starting an Affiliate Program (eCommerce)
- Aurora Trouble... please help I cant delet it (Viruses, Spyware and other Nasties)
- Staffing ad Ad agency for the new world (Promotion and Marketing Plans)
- what are good post-intervals for ranks (Growing an Online Community)
- >>>>>NEED HELP<<<< (Windows NT / 2000 / XP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Marquee or Scrolling Text message in Statusbar using VB6
- Next Thread: recordset,sql not sure where my problem is
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






