-
Notifications
You must be signed in to change notification settings - Fork 1
/
frmEditInfo.frm
768 lines (706 loc) · 24.5 KB
/
frmEditInfo.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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{48E59290-9880-11CF-9754-00AA00C00908}#1.0#0"; "MSINET.OCX"
Begin VB.Form frmEditInfo
AutoRedraw = -1 'True
BorderStyle = 1 'Fixed Single
Caption = "修改资料"
ClientHeight = 3660
ClientLeft = 2760
ClientTop = 3750
ClientWidth = 5010
Icon = "frmEditInfo.frx":0000
LockControls = -1 'True
MaxButton = 0 'False
NegotiateMenus = 0 'False
ScaleHeight = 3660
ScaleWidth = 5010
Begin VB.Frame Frame1
BorderStyle = 0 'None
Height = 960
Left = 225
TabIndex = 33
Top = 465
Width = 795
Begin VB.Image imgIcon
Height = 480
Left = 135
Picture = "frmEditInfo.frx":0E42
Top = 315
Width = 480
End
End
Begin Othello.FlatButton fltbtnEdit
Height = 375
Left = 225
TabIndex = 12
Top = 2040
Width = 780
_ExtentX = 1376
_ExtentY = 661
Caption = "修改"
MousePointer = 99
Style = 2
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
EnableHot = -1 'True
ForeColor = 0
End
Begin Othello.FlatButton fltbtnReload
Height = 375
Left = 225
TabIndex = 13
Top = 2490
Width = 780
_ExtentX = 1376
_ExtentY = 661
Caption = "刷新"
MousePointer = 99
Style = 2
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
EnableHot = -1 'True
ForeColor = 0
End
Begin InetCtlsObjects.Inet ietEdit
Left = 4935
Top = 2445
_ExtentX = 1005
_ExtentY = 1005
_Version = 393216
URL = "http://"
RequestTimeout = 30
End
Begin VB.Frame fraTabs
BorderStyle = 0 'None
Height = 3045
Index = 1
Left = 1020
TabIndex = 15
Top = 3555
Visible = 0 'False
Width = 3780
Begin VB.Frame fraInfo
Caption = "其它信息"
Height = 2850
Left = 0
TabIndex = 16
Top = 90
Width = 3600
Begin VB.ComboBox cboCountry
Height = 300
ItemData = "frmEditInfo.frx":170C
Left = 195
List = "frmEditInfo.frx":1713
TabIndex = 6
Top = 1665
Width = 1545
End
Begin VB.ComboBox cboState
Height = 300
ItemData = "frmEditInfo.frx":1727
Left = 195
List = "frmEditInfo.frx":17AA
TabIndex = 9
Top = 2325
Width = 1545
End
Begin VB.ComboBox cboSex
Height = 300
ItemData = "frmEditInfo.frx":18F4
Left = 2655
List = "frmEditInfo.frx":18FE
Style = 2 'Dropdown List
TabIndex = 8
Top = 1665
Width = 735
End
Begin VB.TextBox txtCity
Height = 315
Left = 1830
MaxLength = 20
TabIndex = 10
Top = 2325
Width = 1560
End
Begin VB.TextBox txtName
Height = 315
Left = 1605
MaxLength = 15
TabIndex = 5
Top = 585
Width = 1785
End
Begin VB.TextBox txtAge
BeginProperty DataFormat
Type = 0
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
Height = 300
Left = 1830
MaxLength = 3
TabIndex = 7
Top = 1665
Width = 735
End
Begin MSComctlLib.ImageCombo imgcboFace
CausesValidation= 0 'False
Height = 315
Left = 360
TabIndex = 4
Top = 585
Width = 840
_ExtentX = 1482
_ExtentY = 556
_Version = 393216
ForeColor = -2147483633
BackColor = -2147483643
Locked = -1 'True
End
Begin VB.Line Line2
BorderColor = &H80000005&
X1 = 1365
X2 = 3435
Y1 = 1170
Y2 = 1170
End
Begin VB.Line Line1
BorderColor = &H80000010&
X1 = 1365
X2 = 3435
Y1 = 1155
Y2 = 1155
End
Begin VB.Label Label23
AutoSize = -1 'True
Caption = "城市:"
Height = 180
Left = 1845
TabIndex = 23
Top = 2100
Width = 450
End
Begin VB.Label Label22
AutoSize = -1 'True
Caption = "省份:"
Height = 180
Left = 210
TabIndex = 22
Top = 2100
Width = 450
End
Begin VB.Label Label21
AutoSize = -1 'True
Caption = "国家/地区:"
Height = 180
Left = 210
TabIndex = 21
Top = 1425
Width = 900
End
Begin VB.Label Label18
AutoSize = -1 'True
Caption = "头像:"
Height = 180
Left = 225
TabIndex = 20
Top = 285
Width = 450
End
Begin VB.Label Label19
AutoSize = -1 'True
Caption = "昵称:"
Height = 180
Left = 1680
TabIndex = 19
Top = 315
Width = 450
End
Begin VB.Label Label20
AutoSize = -1 'True
Caption = "性别:"
Height = 180
Left = 2670
TabIndex = 18
Top = 1425
Width = 450
End
Begin VB.Label Label24
AutoSize = -1 'True
Caption = "年龄:"
Height = 180
Left = 1845
TabIndex = 17
Top = 1425
Width = 450
End
End
End
Begin VB.Frame fraTabs
BorderStyle = 0 'None
Height = 3045
Index = 0
Left = 1080
TabIndex = 24
Top = 420
Visible = 0 'False
Width = 3780
Begin VB.Frame fraBaseInfo
Caption = "基本信息"
Height = 1320
Left = 0
TabIndex = 29
Top = 90
Width = 3600
Begin VB.TextBox txtEmail
Height = 315
Left = 915
TabIndex = 0
Top = 780
Width = 2505
End
Begin VB.TextBox txtUserName
BackColor = &H8000000F&
Height = 315
Left = 915
Locked = -1 'True
TabIndex = 11
TabStop = 0 'False
Top = 330
Width = 2505
End
Begin VB.Label Label2
Caption = "E-mail:"
Height = 180
Left = 225
TabIndex = 31
Top = 840
Width = 630
End
Begin VB.Label Label1
Caption = "用户名:"
Height = 180
Left = 225
TabIndex = 30
Top = 390
Width = 630
End
End
Begin VB.Frame fraPassword
Caption = "修改密码"
Height = 1440
Left = 0
TabIndex = 25
Top = 1500
Width = 3600
Begin VB.TextBox txtNewPassword2
Height = 270
IMEMode = 3 'DISABLE
Left = 1080
PasswordChar = "*"
TabIndex = 3
Top = 1005
Width = 2100
End
Begin VB.TextBox txtNewPassword1
Height = 270
IMEMode = 3 'DISABLE
Left = 1080
PasswordChar = "*"
TabIndex = 2
Top = 645
Width = 2100
End
Begin VB.TextBox txtOldPassword
Height = 270
IMEMode = 3 'DISABLE
Left = 1080
PasswordChar = "*"
TabIndex = 1
Top = 285
Width = 2100
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "校 验:"
Height = 180
Left = 360
TabIndex = 28
Top = 1050
Width = 630
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "新密码:"
Height = 180
Left = 360
TabIndex = 27
Top = 690
Width = 630
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "旧密码:"
Height = 180
Left = 360
TabIndex = 26
Top = 330
Width = 630
End
End
End
Begin Othello.FlatButton fltbtnClose
Cancel = -1 'True
Height = 375
Left = 225
TabIndex = 14
Top = 2940
Width = 780
_extentx = 1376
_extenty = 661
forecolor = 0
mousepointer = 99
font = "frmEditInfo.frx":190A
style = 2
caption = "关闭"
enablehot = -1
End
Begin MSComctlLib.TabStrip tabInfo
Height = 3420
Left = 135
TabIndex = 32
Top = 90
Width = 4770
_ExtentX = 8414
_ExtentY = 6033
MultiRow = -1 'True
HotTracking = -1 'True
_Version = 393216
BeginProperty Tabs {1EFB6598-857C-11D1-B16A-00C0F0283628}
NumTabs = 2
BeginProperty Tab1 {1EFB659A-857C-11D1-B16A-00C0F0283628}
Caption = "基本资料"
Key = "BaseInfo"
ImageVarType = 2
EndProperty
BeginProperty Tab2 {1EFB659A-857C-11D1-B16A-00C0F0283628}
Caption = "详细资料"
Key = "Info"
ImageVarType = 2
EndProperty
EndProperty
End
End
Attribute VB_Name = "frmEditInfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim mblnServerOK As Boolean
Dim FormVisible As Boolean
Public Sub ShowEx()
On Error Resume Next
FormVisible = True
Call Show(vbModeless)
If Me.WindowState <> vbNormal Then
Me.WindowState = vbNormal
End If
'Me.Caption = LoadString(252) & GetDisplayName(gMyUserInfo.UserName, gMyUserInfo.Name)
Call Me.Refresh
Call SetInfo
End Sub
Public Sub FormMinimize()
If Me.Visible Then
Call Me.Hide
End If
End Sub
Public Sub FormNormal()
If FormVisible Then
Call Me.Show(vbModeless)
End If
End Sub
Private Sub fltbtnClose_Click(Button As Integer)
FormVisible = False
Call Me.Hide
End Sub
Private Sub fltbtnEdit_Click(Button As Integer)
On Error Resume Next
If Not CheckBaseInfo() Then Exit Sub
If Not CheckInfo() Then Exit Sub
If SaveInfo() Then
If gblnConnect And (Not (imgcboFace.SelectedItem Is Nothing)) Then
Call MainForm.SendCommand(CMD_InfoChanged & CStr(imgcboFace.SelectedItem.Index) & "|" & txtName.Text)
End If
Me.Caption = LoadString(252) & GetDisplayName(gMyUserInfo.UserName, gMyUserInfo.Name)
If Not (imgcboFace.SelectedItem Is Nothing) Then
Call MainForm.RefreshMyFace(imgcboFace.SelectedItem.Index)
End If
Call MainForm.RefreshMyName
Call frmOnline.ReloadOnline
Call frmTable.ReloadTable(True)
Call MessageBox(hWnd, LoadString(169), vbInformation, LoadString(180))
Else
Call MessageBox(hWnd, LoadString(170), vbExclamation, LoadString(181))
End If
txtOldPassword.Text = ""
txtNewPassword1.Text = ""
txtNewPassword2.Text = ""
End Sub
Private Sub fltbtnReload_Click(Button As Integer)
Call ReloadInfo
End Sub
Private Sub Form_Load()
Dim i As Long
On Error Resume Next
Call Me.Move(gptsSave_EditUserInfo.X, gptsSave_EditUserInfo.Y)
Set imgcboFace.ImageList = MainForm.ilsFace
For i = 1 To Val(MainForm.ilsFace.Tag)
imgcboFace.ComboItems.Add.Image = i
Next i
'imgcboFace.ComboItems.Item(1).Selected = True
Call fraTabs(0).Move(1080, tabInfo.ClientTop)
fraTabs(0).Visible = True
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If UnloadMode = vbFormControlMenu Then
Cancel = True
FormVisible = False
Call Me.Hide
End If
End Sub
Private Sub ietEdit_StateChanged(ByVal State As Integer)
'Dim strMess As String '消息变量。
Select Case State
Case icResponseReceived
mblnServerOK = True
Case icError '11
mblnServerOK = False
'得到错误文本。
'strMess = "ErrorCode: " & ietRegister.ResponseCode & " : " & ietRegister.ResponseInfo
End Select
End Sub
Private Sub imgcboFace_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyReturn Then
KeyCode = 0
End If
End Sub
Private Sub tabInfo_Click()
On Error Resume Next
fraTabs(0).Visible = False
fraTabs(1).Visible = False
Call fraTabs(tabInfo.SelectedItem.Index - 1).Move(1080, tabInfo.ClientTop)
fraTabs(tabInfo.SelectedItem.Index - 1).Visible = True
End Sub
Private Sub SetInfo()
On Error Resume Next
Me.Caption = LoadString(252) & GetDisplayName(gMyUserInfo.UserName, gMyUserInfo.Name)
' 第一部分
txtUserName.Text = gMyUserInfo.UserName
txtEmail.Text = gMyUserInfo.Email
' 第二部分
If gMyUserInfo.Face <= CLng(MainForm.ilsFace.Tag) Then
imgcboFace.ComboItems.Item(gMyUserInfo.Face).Selected = True
End If
txtName.Text = gMyUserInfo.Name
If gMyUserInfo.Sex > 0 And gMyUserInfo.Sex < 3 Then
cboSex.ListIndex = gMyUserInfo.Sex - 1
Else
cboSex.ListIndex = -1
End If
If gMyUserInfo.Age = 0 Then
txtAge.Text = ""
Else
txtAge.Text = CStr(gMyUserInfo.Age)
End If
cboCountry = gMyUserInfo.Country
cboState.Text = gMyUserInfo.State
txtCity.Text = gMyUserInfo.City
End Sub
Private Function CheckBaseInfo() As Boolean
On Error Resume Next
If StrLen(txtEmail.Text) < 3 Or StrLen(txtEmail.Text) > 30 Or InStr(1, txtEmail.Text, "@") < 2 Or Not CheckString(txtEmail.Text) Then
CheckBaseInfo = False
Call MessageBox(hWnd, LoadString(105) & LoadString(106), vbCritical, LoadString(181))
Call SetControlFocus(txtEmail)
Call SendKeys("{Home}+{End}")
Exit Function
End If
If txtOldPassword.Text <> "" Then
If txtOldPassword.Text <> gMyUserInfo.Password Then
CheckBaseInfo = False
Call MessageBox(hWnd, LoadString(171) & LoadString(113), vbCritical, LoadString(181))
Call SetControlFocus(txtOldPassword)
Call SendKeys("{Home}+{End}")
Exit Function
End If
If StrLen(txtNewPassword1.Text) < 5 Or StrLen(txtNewPassword1.Text) > 15 Or Not CheckString(txtNewPassword1.Text) Then
CheckBaseInfo = False
Call MessageBox(hWnd, LoadString(103) & LoadString(113), vbCritical, LoadString(181))
Call SetControlFocus(txtNewPassword1)
Call SendKeys("{Home}+{End}")
Exit Function
End If
If txtNewPassword2.Text <> txtNewPassword1.Text Then
CheckBaseInfo = False
Call MessageBox(hWnd, LoadString(104), vbCritical, LoadString(181))
txtNewPassword1.Text = ""
txtNewPassword2.Text = ""
Call SetControlFocus(txtNewPassword1)
Exit Function
End If
Else
txtNewPassword1.Text = ""
txtNewPassword2.Text = ""
'CheckBaseInfo = False
'Call MessageBox(hWnd, LoadString(171) & LoadString(113), vbCritical, LoadString(181))
'Call SetControlFocus(txtOldPassword)
'Call SendKeys("{Home}+{End}")
'Exit Function
End If
CheckBaseInfo = True
End Function
Private Function CheckInfo() As Boolean
On Error Resume Next
If Not CheckString(txtName.Text) Then
CheckInfo = False
Call MessageBox(hWnd, LoadString(107), vbCritical, LoadString(181))
Call SetControlFocus(txtName)
Call SendKeys("{Home}+{End}")
Exit Function
End If
If txtAge.Text <> "" Then
If Val(txtAge.Text) < 1 Or Val(txtAge.Text) > 99 Or Not CheckString(txtAge.Text) Then
CheckInfo = False
Call MessageBox(hWnd, LoadString(108), vbCritical, LoadString(181))
Call SetControlFocus(txtAge)
Call SendKeys("{Home}+{End}")
Exit Function
End If
End If
If StrLen(cboCountry.Text) > 20 Or Not CheckString(cboCountry.Text) Then
CheckInfo = False
Call MessageBox(hWnd, LoadString(109), vbCritical, LoadString(181))
Call SetControlFocus(cboCountry)
Call SendKeys("{Home}+{End}")
Exit Function
End If
If StrLen(cboState.Text) > 20 Or Not CheckString(cboState.Text) Then
CheckInfo = False
Call MessageBox(hWnd, LoadString(110), vbCritical, LoadString(181))
Call SetControlFocus(cboState)
Call SendKeys("{Home}+{End}")
Exit Function
End If
If Not CheckString(txtCity.Text) Then
CheckInfo = False
Call MessageBox(hWnd, LoadString(111), vbCritical, LoadString(181))
Call SetControlFocus(txtCity)
Call SendKeys("{Home}+{End}")
Exit Function
End If
CheckInfo = True
End Function
Private Function SaveInfo() As Boolean
Dim strUrl As String
Dim strStatus As String
Dim strData As String
On Error Resume Next
strUrl = gstrSave_ServerUrl & SERVER_ACTION_USER_EDIT & _
"?username=" & ToUrlString(gMyUserInfo.UserName)
If txtNewPassword1.Text <> "" Then strUrl = strUrl & "&password=" & MD5(txtNewPassword1.Text)
If Not (imgcboFace.SelectedItem Is Nothing) Then
strUrl = strUrl & "&face=" & CStr(imgcboFace.SelectedItem.Index)
End If
strUrl = strUrl & "&name=" & ToUrlString(txtName.Text) & _
"&country=" & ToUrlString(cboCountry.Text) & _
"&state=" & ToUrlString(cboState.Text) & _
"&city=" & ToUrlString(txtCity.Text)
If txtOldPassword.Text <> "" Then
strUrl = strUrl & "&oldpassword=" & MD5(txtOldPassword.Text)
Else
strUrl = strUrl & "&oldpassword=" & MD5(gMyUserInfo.Password)
End If
If txtEmail.Text <> gMyUserInfo.Email Then
strUrl = strUrl & "&email=" & ToUrlString(txtEmail.Text)
End If
If cboSex.ListIndex = -1 Then
strUrl = strUrl & "&sex=0"
ElseIf cboSex.Text = LoadString(209) Then
strUrl = strUrl & "&sex=" & CStr(SEX_MAN)
Else
strUrl = strUrl & "&sex=" & CStr(SEX_WOMAN)
End If
If txtAge.Text = "" Then
strUrl = strUrl & "&age=0"
Else
strUrl = strUrl & "&age=" & CStr(Int(Val(txtAge.Text)))
End If
strUrl = strUrl & "&" & MakeServerPassword() & "&" & MakeVersion()
Me.MousePointer = vbHourglass
Me.Caption = LoadString(257)
If ServerCommand(ietEdit, mblnServerOK, strUrl, strStatus, strData) Then
Me.MousePointer = vbDefault
If strStatus = STATUS_OK Then
If txtNewPassword1.Text <> "" Then gMyUserInfo.Password = txtNewPassword1.Text
gMyUserInfo.Email = txtEmail.Text
gMyUserInfo.Face = imgcboFace.SelectedItem.Index
gMyUserInfo.Name = txtName.Text
gMyUserInfo.Country = cboCountry.Text
gMyUserInfo.State = cboState.Text
gMyUserInfo.City = txtCity.Text
If cboSex.List(cboSex.ListIndex) = "" Then
gMyUserInfo.Sex = 0
ElseIf cboSex.List(cboSex.ListIndex) = LoadString(209) Then
gMyUserInfo.Sex = SEX_MAN
Else
gMyUserInfo.Sex = SEX_WOMAN
End If
gMyUserInfo.Age = Val(txtAge.Text)
SaveInfo = True
Exit Function
End If
End If
Me.MousePointer = vbDefault
Me.Caption = LoadString(252) & GetDisplayName(gMyUserInfo.UserName, gMyUserInfo.Name)
SaveInfo = False
End Function
Private Function ReloadInfo() As Boolean
Dim strUrl As String
Dim strStatus As String
Dim strData As String
On Error Resume Next
strUrl = gstrSave_ServerUrl & SERVER_ACTION_USER_VIEW & _
"?username=" & ToUrlString(gMyUserInfo.UserName) & _
"&name=" & ToUrlString(gMyUserInfo.UserName) & _
"&" & MakeServerPassword() & _
"&" & MakeVersion()
If ServerCommand(ietEdit, mblnServerOK, strUrl, strStatus, strData) Then
If strStatus = STATUS_OK Then
Call LoadUserInfo(gMyUserInfo, strData)
Call SetInfo
ReloadInfo = True
Exit Function
End If
End If
ReloadInfo = False
End Function