-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfrmCentr.frm
203 lines (201 loc) · 6.54 KB
/
frmCentr.frm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
VERSION 5.00
Begin VB.Form frmCentr
BorderStyle = 1 'Fixed Single
Caption = "Óñòàíîâêè"
ClientHeight = 2310
ClientLeft = 345
ClientTop = 735
ClientWidth = 7035
ControlBox = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 2310
ScaleWidth = 7035
Begin VB.TextBox txtExact
Height = 285
Left = 2160
TabIndex = 12
Top = 1560
Width = 975
End
Begin VB.TextBox txtStep
Height = 285
Left = 2040
TabIndex = 10
Top = 960
Width = 975
End
Begin VB.TextBox txtMax
Height = 285
Left = 5280
TabIndex = 8
Top = 360
Width = 975
End
Begin VB.TextBox txtMin
Height = 285
Left = 5280
TabIndex = 7
Top = 960
Width = 975
End
Begin VB.CommandButton cmdOk
Caption = "OK"
Default = -1 'True
Height = 375
Left = 5520
TabIndex = 4
Top = 1680
Width = 1095
End
Begin VB.TextBox txtCY
Height = 285
Left = 2280
TabIndex = 1
Top = 360
Width = 735
End
Begin VB.TextBox txtCX
Height = 285
Left = 1320
TabIndex = 0
Top = 360
Width = 735
End
Begin VB.Label Label6
Caption = "Òî÷íîñòü:"
BeginProperty Font
Name = "Franklin Gothic Heavy"
Size = 9.75
Charset = 204
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 11
Top = 1560
Width = 1455
End
Begin VB.Label Label4
Caption = "Øàã:"
BeginProperty Font
Name = "Franklin Gothic Heavy"
Size = 9.75
Charset = 204
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 9
Top = 960
Width = 975
End
Begin VB.Label Label3
Caption = "Màõ ôóíêöèè:"
BeginProperty Font
Name = "Franklin Gothic Heavy"
Size = 9.75
Charset = 204
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 3360
TabIndex = 6
Top = 360
Width = 1455
End
Begin VB.Label Label2
Caption = "Min ôóíêöèè:"
BeginProperty Font
Name = "Franklin Gothic Heavy"
Size = 9.75
Charset = 204
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 3360
TabIndex = 5
Top = 960
Width = 1455
End
Begin VB.Label Label1
Caption = "Öåíòð:"
BeginProperty Font
Name = "Franklin Gothic Heavy"
Size = 9.75
Charset = 204
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 3
Top = 360
Width = 1215
End
Begin VB.Label Label5
Caption = ":"
BeginProperty Font
Name = "Franklin Gothic Heavy"
Size = 9.75
Charset = 204
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 2160
TabIndex = 2
Top = 360
Width = 135
End
End
Attribute VB_Name = "frmCentr"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim intcount As Integer
Private Sub cmdOk_Click()
txtCX = Replace(txtCX, ",", ".")
txtCY = Replace(txtCY, ",", ".")
txtStep = Replace(txtStep, ",", ".")
txtMin = Replace(txtMin, ",", ".")
txtMax = Replace(txtMax, ",", ".")
txtExact = Replace(txtExact, ",", ".")
For intcount = 1 To Len(txtCX)
If (Asc(Mid(txtCX, intcount, 1)) + 2) \ 10 <> 5 And Mid(txtCX, intcount, 1) <> "." And Mid(txtCX, intcount, 1) <> "-" Then MsgBox "Íåâåðíîå ÷èñëî", vbCritical, "Error": Exit Sub
Next intcount
For intcount = 1 To Len(txtCY)
If (Asc(Mid(txtCY, intcount, 1)) + 2) \ 10 <> 5 And Mid(txtCY, intcount, 1) <> "." And Mid(txtCY, intcount, 1) <> "-" Then MsgBox "Íåâåðíîå ÷èñëî", vbCritical, "Error": Exit Sub
Next intcount
For intcount = 1 To Len(txtStep)
If (Asc(Mid(txtStep, intcount, 1)) + 2) \ 10 <> 5 And Mid(txtStep, intcount, 1) <> "." Then MsgBox "Íåâåðíîå ÷èñëî", vbCritical, "Error": Exit Sub
Next intcount
For intcount = 1 To Len(txtMin)
If (Asc(Mid(txtMin, intcount, 1)) + 2) \ 10 <> 5 And Mid(txtMin, intcount, 1) <> "." And Mid(txtMin, intcount, 1) <> "-" Then MsgBox "Íåâåðíîå ÷èñëî", vbCritical, "Error": Exit Sub
Next intcount
For intcount = 1 To Len(txtMax)
If (Asc(Mid(txtMax, intcount, 1)) + 2) \ 10 <> 5 And Mid(txtMax, intcount, 1) <> "." And Mid(txtMax, intcount, 1) <> "-" Then MsgBox "Íåâåðíîå ÷èñëî", vbCritical, "Error": Exit Sub
Next intcount
For intcount = 1 To Len(txtExact)
If (Asc(Mid(txtExact, intcount, 1)) + 2) \ 10 <> 5 Then MsgBox "Íåâåðíîå ÷èñëî", vbCritical, "Error": Exit Sub
Next intcount
Hide
End Sub