|
1 members (Russ),
10,950
guests, and
1,516
robots. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
S |
M |
T |
W |
T |
F |
S |
|
|
|
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
|
|
|
|
|
This is another custom island. This one could be used for ads. This spot is one of the best places for ads on your site to be placed. This can be enabled/disabled on a per forum basis.
|
|
|
|
Joined: Dec 1999
Posts: 30,868
Master Elite Member
|
Public Function String_PurgeWS(MyString As String) As String
'Purpose
' Used to remove all whitespace characters from a string.
'Parameters
' MyString (String) = The string we're working with.
'Version History
' 1.05/10/2006 9:42pm Tested by Russ Tanner on VB6 Win2000
'---
'Initiate variables
Dim WS() As Byte 'this is our list of characters that we consider whitespace
Dim i As Long 'iterator
Dim R As String 'return buffer
'Define the list of characters that we consider whitespace.
'The "C" standard library considers spaces and tabs to be whitespace.
ReDim WS(1)
WS(0) = 32
WS(1) = 9
'Preload the return buffer
R = MyString
'Main Loop: Loop through all characters that are considered whitespace
For i = 0 To UBound(WS)
R = Replace(R, Chr(WS(i)), "")
Next i
'Return result
String_PurgeWS = R
End Function
|
|
|
|
|