1 Attribute VB_Name = "GLOBALS"
2 ' KeepAlive is the frequency with which to send NOOP
3 ' commands to the server to keep it from timing out
4 ' (and also to check for express messages).
6 Global Const KeepAlive = 30000
7 Global Const MaxRooms = 200
8 Global Const DefaultPort = 2112
10 ' Used during startup for user or system cancel of call
16 Global DoubleClickAction$
18 Global SaveNewRooms$(MaxRooms)
19 Global SaveOldRooms$(MaxRooms)
25 Global serv_humannode$
28 Global serv_rev_level!
32 Global msg_array&(256)
43 Global DownLoadFileName$
45 Global LastMessageRead&
47 Function Cit_Format(ib As String) As String
53 nl% = InStr(ib, Chr$(13) + Chr$(10))
58 a$ = Left$(ib, nl% - 1)
59 ib = Right$(ib, Len(ib) - nl% - 1)
62 If fl% = 1 And Left$(a$, 1) = " " Then
63 ob$ = ob$ + Chr$(13) + Chr$(10)
71 Do While Left$(ob$, 2) = Chr$(13) + Chr$(10)
72 ob$ = Right$(ob$, Len(ob$) - 2)
74 Do While Right$(ob$, 2) = Chr$(13) + Chr$(10)
75 ob$ = Left$(ob$, Len(ob$) - 2)
81 Function extract$(source$, parmnum%)
85 For a% = 1 To parmnum%
86 b% = InStr(1, buf$, "|")
87 If (b% > 0) Then buf$ = Right$(buf$, Len(buf$) - b%)
91 b% = InStr(1, buf$, "|")
92 If b% > 0 Then buf$ = Left$(buf$, b% - 1)
98 Call setvars ' set unixtime stuff in Ford module
101 axdefs$(0) = "Marked for deletion"
102 axdefs$(1) = "New unvalidated user"
103 axdefs$(2) = "Problem user"
104 axdefs$(3) = "Local user"
105 axdefs$(4) = "Network user"
106 axdefs$(5) = "Preferred user"
112 Function StripTrailingWhiteSpace(padstr As String) As String
113 If Len(padstr) > 0 Then
114 Do While Asc(Right$(padstr, 1)) = 0 Or Right$(padstr, 1) = " "
115 padstr = Left$(padstr, Len(padstr) - 1)
116 If Len(padstr) < 1 Then Exit Do
120 If Len(padstr) > 0 Then
121 Do While Asc(Left$(padstr, 1)) = 0 Or Left$(padstr, 1) = " "
122 padstr = Right$(padstr, Len(padstr) - 1)
123 If Len(padstr) < 1 Then Exit Do
127 StripTrailingWhiteSpace = padstr