home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form DemoFrm1
- BackColor = &H00FFFFFF&
- Caption = "VB Input Demo Form"
- ClientHeight = 4815
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 7185
- Height = 5220
- Left = 1035
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- ScaleHeight = 4815
- ScaleWidth = 7185
- Top = 1140
- Width = 7305
- Begin TextBox Text9
- BackColor = &H00E0FFFF&
- Height = 375
- Left = 1440
- TabIndex = 17
- Top = 3960
- Width = 2175
- End
- Begin TextBox Text8
- BackColor = &H00E0FFFF&
- Height = 375
- Left = 1440
- TabIndex = 16
- Top = 3480
- Width = 2175
- End
- Begin TextBox Text7
- BackColor = &H00E0FFFF&
- Height = 375
- Left = 1440
- TabIndex = 13
- Top = 3000
- Width = 2175
- End
- Begin TextBox Text6
- BackColor = &H00E0FFFF&
- Height = 375
- Left = 1440
- TabIndex = 11
- Top = 2520
- Width = 2175
- End
- Begin TextBox Text5
- BackColor = &H00E0FFFF&
- Height = 375
- Left = 1440
- TabIndex = 9
- Top = 2040
- Width = 2175
- End
- Begin TextBox Text4
- BackColor = &H00E0FFFF&
- Height = 375
- Left = 1440
- TabIndex = 7
- Top = 1560
- Width = 2175
- End
- Begin TextBox Text3
- BackColor = &H00E0FFFF&
- Height = 375
- Left = 1440
- TabIndex = 6
- Top = 1080
- Width = 2175
- End
- Begin TextBox Text11
- BackColor = &H00E0FFFF&
- Height = 375
- Left = 4920
- TabIndex = 21
- Top = 600
- Width = 2175
- End
- Begin TextBox Text2
- BackColor = &H00E0FFFF&
- Height = 375
- Left = 1440
- TabIndex = 1
- Top = 600
- Width = 2175
- End
- Begin TextBox Text10
- BackColor = &H00E0FFFF&
- Height = 375
- Left = 4920
- TabIndex = 19
- Top = 120
- Width = 2175
- End
- Begin TextBox Text1
- BackColor = &H00E0FFFF&
- Height = 375
- Left = 1440
- TabIndex = 0
- Top = 120
- Width = 2175
- End
- Begin Label Label9
- Caption = "Currency 4"
- Height = 375
- Left = 120
- TabIndex = 15
- Top = 4080
- Width = 1215
- End
- Begin Label Label8
- Caption = "Currency 2"
- Height = 255
- Left = 120
- TabIndex = 14
- Top = 3600
- Width = 1215
- End
- Begin Label Label7
- BackColor = &H00FFFFFF&
- Caption = "Upper Case"
- Height = 255
- Left = 120
- TabIndex = 12
- Top = 3120
- Width = 1215
- End
- Begin Label Label6
- BackColor = &H00FFFFFF&
- Caption = "Mult/Price"
- Height = 375
- Left = 120
- TabIndex = 10
- Top = 2640
- Width = 1215
- End
- Begin Label Label5
- BackColor = &H00FFFFFF&
- Caption = "Date"
- Height = 375
- Left = 120
- TabIndex = 8
- Top = 2160
- Width = 1215
- End
- Begin Label Label4
- BackColor = &H00FFFFFF&
- Caption = "Long Integer"
- Height = 375
- Left = 120
- TabIndex = 5
- Top = 1680
- Width = 1215
- End
- Begin Label Label3
- BackColor = &H00FFFFFF&
- Caption = "String"
- Height = 375
- Left = 120
- TabIndex = 4
- Top = 1200
- Width = 1215
- End
- Begin Label Label11
- Caption = "Date Serial"
- Height = 255
- Left = 3720
- TabIndex = 20
- Top = 720
- Width = 1095
- End
- Begin Label Label2
- BackColor = &H00FFFFFF&
- Caption = "Point4"
- Height = 375
- Left = 120
- TabIndex = 3
- Top = 720
- Width = 1215
- End
- Begin Label Label10
- Caption = "Integer"
- Height = 375
- Left = 3720
- TabIndex = 18
- Top = 240
- Width = 1095
- End
- Begin Label Label1
- BackColor = &H00FFFFFF&
- Caption = "Point2"
- Height = 375
- Left = 120
- TabIndex = 2
- Top = 240
- Width = 1215
- End
- Sub SetCoor ()
- Cls
- For i% = 1 To 10
- Print
- Next i%
- Print Tab(43);
- End Sub
- Sub Text1_KeyPress (KeyAscii As Integer)
- Point2KP Text1, 10, KeyAscii
- End Sub
- Sub Text1_LostFocus ()
- Temp# = Point2LF(Text1, 1, 400.25)
- SetCoor
- Print "Point 2 = "; Temp#
- End Sub
- Sub Text10_KeyPress (KeyAscii As Integer)
- IntKP Text10, 6, KeyAscii
- End Sub
- Sub Text10_LostFocus ()
- Temp% = IntLF(Text10, 10, 1000)
- SetCoor
- Print "Integer = "; Temp%
- End Sub
- Sub Text11_KeyPress (KeyAscii As Integer)
- DateSerKP Text11, KeyAscii
- End Sub
- Sub Text11_LostFocus ()
- DateSerialNumber# = DateSerLF(Text11, "910101")
- SetCoor
- Print "Date Serial # = "; DateSerialNumber#
- Print Tab(43); Format$(DateSerialNumber#, "dddd, mmmm, dd, yyyy")
- End Sub
- Sub Text2_KeyPress (KeyAscii As Integer)
- Point4KP Text2, 10, KeyAscii
- End Sub
- Sub Text2_LostFocus ()
- Temp# = Point4LF(Text2, 1, 1000)
- SetCoor
- Print "Point 4 = "; Temp#
- End Sub
- Sub Text3_KeyPress (KeyAscii As Integer)
- StrKP Text3, 20, KeyAscii
- End Sub
- Sub Text3_LostFocus ()
- Temp$ = Text3.Text
- SetCoor
- Print "Text = "; Temp$
- End Sub
- Sub Text4_KeyPress (KeyAscii As Integer)
- LongKP Text4, 10, KeyAscii
- End Sub
- Sub Text4_LostFocus ()
- Temp& = LongLF(Text4, 10, 100)
- SetCoor
- Print "Long Integer = "; Temp&
- End Sub
- Sub Text5_KeyPress (KeyAscii As Integer)
- DateKP Text5, KeyAscii
- End Sub
- Sub Text5_LostFocus ()
- Temp$ = DateLF(Text5, "910101")
- SetCoor
- Print "Returned Date = "; Temp$
- End Sub
- Sub Text6_KeyPress (KeyAscii As Integer)
- MultPriceKP Text6, KeyAscii
- End Sub
- Sub Text6_LostFocus ()
- Temp$ = MultPriceLF(Text6)
- SetCoor
- Print "Multiple/Price = "; Temp$
- End Sub
- Sub Text7_KeyPress (KeyAscii As Integer)
- UCStrKP Text7, 20, KeyAscii
- End Sub
- Sub Text7_LostFocus ()
- Temp$ = Text7.Text
- SetCoor
- Print "Upper case string = "; Temp$
- End Sub
- Sub Text8_KeyPress (KeyAscii As Integer)
- Curr2KP Text8, 10, KeyAscii
- End Sub
- Sub Text8_LostFocus ()
- Temp@ = Curr2LF(Text8, -200, 115.5)
- SetCoor
- Print "Currency 2 = "; Temp@
- End Sub
- Sub Text9_KeyPress (KeyAscii As Integer)
- Curr4KP Text9, 10, KeyAscii
- End Sub
- Sub Text9_LostFocus ()
- Temp@ = Curr4LF(Text9, 1, 125.5555)
- SetCoor
- Print "Currency 4 = "; Temp@
- End Sub
-