2 Begin VB.Form Validation
4 BackColor = &H00C0C0C0&
5 BorderStyle = 3 'Fixed Dialog
6 Caption = "Validate new users"
11 ClipControls = 0 'False
14 name = "MS Sans Serif"
20 strikethrough = 0 'False
22 ForeColor = &H80000008&
33 Begin VB.CommandButton save_button
35 BackColor = &H80000005&
38 name = "MS Sans Serif"
44 strikethrough = 0 'False
53 Begin VB.CommandButton save_button
55 BackColor = &H80000005&
58 name = "MS Sans Serif"
64 strikethrough = 0 'False
73 Begin VB.CommandButton save_button
75 BackColor = &H80000005&
78 name = "MS Sans Serif"
84 strikethrough = 0 'False
93 Begin VB.CommandButton save_button
95 BackColor = &H80000005&
98 name = "MS Sans Serif"
104 strikethrough = 0 'False
113 Begin VB.CommandButton save_button
115 BackColor = &H80000005&
118 name = "MS Sans Serif"
124 strikethrough = 0 'False
133 Begin VB.CommandButton save_button
135 BackColor = &H80000005&
138 name = "MS Sans Serif"
144 strikethrough = 0 'False
153 Begin VB.CommandButton cancel_button
155 BackColor = &H80000005&
158 name = "MS Sans Serif"
164 strikethrough = 0 'False
172 Begin VB.CommandButton save_button
174 BackColor = &H80000005&
177 name = "MS Sans Serif"
183 strikethrough = 0 'False
192 Begin VB.Label Label8
195 BackColor = &H80000005&
196 BackStyle = 0 'Transparent
197 Caption = "Please choose an access level for this user:"
199 name = "MS Sans Serif"
205 strikethrough = 0 'False
207 ForeColor = &H80000008&
214 Begin VB.Label TheAxLevel
216 BackColor = &H80000005&
217 BackStyle = 0 'Transparent
218 Caption = "Access level"
219 ForeColor = &H80000008&
226 Begin VB.Label Label7
227 Alignment = 1 'Right Justify
229 BackColor = &H80000005&
230 BackStyle = 0 'Transparent
231 Caption = "Current access:"
233 name = "MS Sans Serif"
239 strikethrough = 0 'False
241 ForeColor = &H80000008&
250 BackColor = &H80000005&
251 BackStyle = 0 'Transparent
253 ForeColor = &H80000008&
262 BackColor = &H80000005&
263 BackStyle = 0 'Transparent
265 ForeColor = &H80000008&
272 Begin VB.Label TheState
274 BackColor = &H80000005&
275 BackStyle = 0 'Transparent
277 ForeColor = &H80000008&
286 BackColor = &H80000005&
287 BackStyle = 0 'Transparent
289 ForeColor = &H80000008&
296 Begin VB.Label Address
298 BackColor = &H80000005&
299 BackStyle = 0 'Transparent
301 ForeColor = &H80000008&
308 Begin VB.Label RealName
310 BackColor = &H80000005&
311 BackStyle = 0 'Transparent
312 Caption = "Real Name"
313 ForeColor = &H80000008&
320 Begin VB.Label UserName
321 Alignment = 2 'Center
323 BackColor = &H00FFFFFF&
324 BackStyle = 0 'Transparent
327 name = "MS Sans Serif"
333 strikethrough = 0 'False
335 ForeColor = &H80000008&
342 Begin VB.Label Label6
343 Alignment = 1 'Right Justify
345 BackColor = &H80000005&
346 BackStyle = 0 'Transparent
347 Caption = "Telephone:"
349 name = "MS Sans Serif"
355 strikethrough = 0 'False
357 ForeColor = &H80000008&
364 Begin VB.Label Label5
365 Alignment = 1 'Right Justify
367 BackColor = &H80000005&
368 BackStyle = 0 'Transparent
369 Caption = "State/Province:"
371 name = "MS Sans Serif"
377 strikethrough = 0 'False
379 ForeColor = &H80000008&
386 Begin VB.Label Label4
387 Alignment = 1 'Right Justify
389 BackColor = &H80000005&
390 BackStyle = 0 'Transparent
391 Caption = "ZIP Code:"
393 name = "MS Sans Serif"
399 strikethrough = 0 'False
401 ForeColor = &H80000008&
408 Begin VB.Label Label3
409 Alignment = 1 'Right Justify
411 BackColor = &H80000005&
412 BackStyle = 0 'Transparent
413 Caption = "City/Town:"
415 name = "MS Sans Serif"
421 strikethrough = 0 'False
423 ForeColor = &H80000008&
430 Begin VB.Label Label2
431 Alignment = 1 'Right Justify
433 BackColor = &H80000005&
434 BackStyle = 0 'Transparent
437 name = "MS Sans Serif"
443 strikethrough = 0 'False
445 ForeColor = &H80000008&
452 Begin VB.Label Label1
453 Alignment = 1 'Right Justify
455 BackColor = &H00FFFFFF&
456 BackStyle = 0 'Transparent
457 Caption = "Real name:"
459 name = "MS Sans Serif"
465 strikethrough = 0 'False
467 ForeColor = &H80000008&
475 Attribute VB_Name = "Validation"
476 Attribute VB_Creatable = False
477 Attribute VB_Exposed = False
479 Private Sub cancel_button_Click()
484 Private Sub Form_Load()
486 Validation.WindowState = 0
487 Validation.Top = Int((MainWin.Height - Validation.Height) / 3)
488 Validation.Left = Int((MainWin.Width - Validation.Width) / 2)
491 save_button(i).Caption = Str$(i) + " (" + axdefs$(i) + ")"
494 Call GetNextUnregisteredUser
498 Private Sub GetNextUnregisteredUser()
500 RealName.Caption = ""
503 TheState.Caption = ""
506 TheAxLevel.Caption = ""
508 If begin_trans() = True Then
513 If Left$(a$, 1) = "2" Then
519 UserName.Caption = Right$(a$, Len(a$) - 4)
521 If Left$(a$, 1) <> "3" Then
524 save_button(i).Enabled = False
530 serv_puts ("GREG " + UserName.Caption)
532 If Left$(a$, 1) = "1" Then
533 UserName.Caption = Right$(a$, Len(a$) - 4)
537 If b% = 2 Then RealName.Caption = a$
538 If b% = 3 Then Address.Caption = a$
539 If b% = 4 Then City.Caption = a$
540 If b% = 5 Then TheState.Caption = a$
541 If b% = 6 Then ZIP.Caption = a$
542 If b% = 7 Then Phone.Caption = a$
543 If b% = 8 Then TheAxLevel.Caption = a$ + " (" + axdefs$(Val(a$)) + ")"
545 Loop Until a$ = "000"
549 save_button(i).Enabled = True
559 Private Sub save_button_Click(axl As Integer)
561 If begin_trans() = True Then
562 serv_puts ("VALI " + UserName.Caption + "|" + Str$(axl))
565 If Left$(a$, 1) = "2" Then
566 Call GetNextUnregisteredUser
568 MsgBox Right$(a$, Len(a$) - 4), 16, "Error"