473,491 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Automatic Time Manager (ATM)

20 New Member
Hi Every Body

The following is the code for generation of 1/100 of a seconds Time and used Them for recording of a Race time for five Track on a ground.

Option Explicit
DIM, C,M,S

Private Sub Form_Load()
Timer2.Enabled = False
End Sub
'
Private Sub Timer1_Timer()
Label4.Caption = Format(Date, "dd.mm.yyyy")
Label5.Caption = Time
End Sub
'
'**************************** Trac no.01 **************************
Private Sub Label17_Click()
ID1 = Text4.Text
Label18.Caption = C
Label19.Caption = S
Label20.Caption = M
C1 = C
S1 = S
M1 = M
Label17.Enabled = False
End Sub
''**************************** Trac no.02 **************************
Private Sub Label21_Click()
ID2 = Text5.Text
Label22.Caption = C
Label23.Caption = S
Label24.Caption = M
C2 = C
S2 = S
M2 = M
Label21.Enabled = False
End Sub
''**************************** Trac no.03 **************************
Private Sub Label25_Click()
ID3 = Text6.Text
Label26.Caption = C
Label27.Caption = S
Label28.Caption = M
C3 = C
S3 = S
M3 = M
Label25.Enabled = False
End Sub
''**************************** Trac no.04 **************************
Private Sub Label29_Click()
ID4 = Text7.Text
Label30.Caption = C
Label31.Caption = S
Label32.Caption = M
C4 = C
S4 = S
M4 = M
Label29.Enabled = False
End Sub
''**************************** Trac no.05 **************************
Private Sub Label33_Click()
ID5 = Text8.Text
Label34.Caption = C
Label35.Caption = S
Label36.Caption = M
C5 = C
S5 = S
M5 = M
Label33.Enabled = False
End Sub
'
''************************ MASTER TIMER *****************************
'
Private Sub Timer2_Timer()
C = C + 1 'Counter for time generation of 10 m.s.
Label9.Caption = C '1/100 Seconds
If C = 100 Then S = S + 1 '100 counts = 1 mil seconds
If C = 100 Then C = 0 'One Second
Label10.Caption = S 'Seconds
'
If S = 60 Then M = M + 1 'One Minute
If S = 60 Then S = 0 'Max 59.99 Minutes
Label11.Caption = M 'Minutes
End Sub
'

Private Sub Command1_Click()
Label7.Caption = Time 'Master Timer
Timer2.Enabled = True 'Race Times
'********************************************
CODE = Text1.Text
Dt = Date
RST = Label7.Caption
GROUND = Text2.Text
LENGTH = Text3.Text
'
Timer2.Enabled = False
C = 0
S = 0
M = 0
Label9.Caption = 0
Label10.Caption = 0
Label11.Caption = 0
'******* 1************
Label17.Enabled = True
Text4.Text = ""
Label18.Caption = 0
Label19.Caption = 0
Label20.Caption = 0
'********2***********
Label21.Enabled = True
Text5.Text = ""
Label22.Caption = 0
Label23.Caption = 0
Label24.Caption = 0
'*********3**********
Label25.Enabled = True
Text6.Text = ""
Label26.Caption = 0
Label27.Caption = 0
Label28.Caption = 0
'*********4**********
Label29.Enabled = True
Text7.Text = ""
Label30.Caption = 0
Label31.Caption = 0
Label32.Caption = 0
'*********5**********
Label33.Enabled = True
Text8.Text = ""
Label34.Caption = 0
Label35.Caption = 0
Label36.Caption = 0
'*******************
End Sub
'
Private Sub Command2_Click()
End
End Sub

For more VB-6 Hint & Help on time generation click on the followink Link
http://areptone.diinoweb.com/files/M...t/aeptime.html

Thanks
Adeeb Raza
Nov 11 '07 #1
0 1293

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1994
by: Creat ASP Page Automatic | last post by:
Hi; I want to ask you something very important for me .. how can i Create daynamic pages or static pages Automatic .??????????!!! i have a problem with my website i want Create page asp...
28
3295
by: joe | last post by:
I have a simple .NET application with two or three listViews which are filled with icons and when the user click on the proper item, they display the related images. I use "image = null ; " for all...
17
3333
by: Franc Zabkar | last post by:
My D-Link DSL-302G modem/router has a real-time clock whose settings are volatile. To avoid hand keying the date/time via the modem's JS interface, I wonder if there is a way to copy the JS code to...
5
1244
by: Daniel Wetzler | last post by:
Hi Sqlserver experts, I use the SQL Server enterprise manager of MSSQL 2000 regularly. I'm often annoyed by the automatic blanking of the table views. If this happens then mostly with the hint...
58
4601
by: Jorge Peixoto de Morais Neto | last post by:
I was reading the code of FFmpeg and it seems that they use malloc just too much. The problems and dangers of malloc are widely known. Malloc also has some overhead (although I don't know what is...
2
2243
by: khushtarzia | last post by:
Dear Friends I want to know how to generate 1/100 of a second time in VB6 for On/Off Timer function for Automatic Time Manager (ATM) through PC's LPT-1 Port with Interfac. Kindly help me. Thanks...
0
922
by: RG | last post by:
I have a stored procedure which is called by db2 "call ....." statement from ksh script. When running from AIX DB2 v. 9.1.3 environment, after a while the stored procedure starts to hang and...
2
2001
by: Denny | last post by:
I'm going from VB.net. Is there a way to have VS automatically add braces to methods? Also in VB, you do not need to add () for a method or function that does not need parameters. Is there a way...
0
7112
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6974
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
5448
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4878
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4573
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3074
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1389
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.