Advertisement
Advertisement
| 05.07.2008 at 08:56AM PDT, ID: 23383269 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 05.07.2008 at 09:01AM PDT, ID: 21517779 |
1: |
array = str1.Split("?val=")
|
| 05.07.2008 at 09:03AM PDT, ID: 21517787 |
| 05.07.2008 at 09:38AM PDT, ID: 21518109 |
| 05.07.2008 at 10:15AM PDT, ID: 21518434 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: |
Dim str1 As String = "aaaa?val=ABC&bbbbb?val=DEFG&cccccc?val=HIJ&ddddddd"
Dim values() As String = Strings.Split(str1.Replace("?val=", "&"), "&")
Dim arr As New List(Of String)
For i As Integer = 1 To values.Length - 1 Step 2
arr.Add(values(i))
Next
For i As Integer = 0 To arr.Count - 1
Debug.Print("arr(" & i & ") = " & arr(i))
Next
|
| 05.07.2008 at 11:13AM PDT, ID: 21518940 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: |
Dim str1 As String
Dim arr As Array
str1 = "aaaa?val=ABC&bbbbb?val=DEFG&cccccc?val=HIJ&ddddddd"
arr = Split(str1.Substring(0, Len(str1)), "?val=")
Dim i As Integer
i = 0
For Each item In arr
If (arr(i).IndexOf("&") > 0) Then
arr(i) = arr(i).Substring(0, arr(i).IndexOf("&"))
MsgBox(arr(i))
End If
i = i + 1
Next
MsgBox(arr(0))
MsgBox(arr(1))
MsgBox(arr(2))
MsgBox(arr(3))
|
| 05.07.2008 at 11:35AM PDT, ID: 21519138 |
| 05.07.2008 at 12:58PM PDT, ID: 21519847 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: |
Dim str1 As String = "aaaa?val=ABC&bbbbb?val=DEFG&cccccc?val=HIJ&ddddddd"
Dim arr1 As New List(Of String)
Dim Tag1 As String = "?val="
Dim Tag2 As String = "&"
Dim Tag1Pos As Integer = str1.IndexOf(Tag1)
Dim Tag2Pos As Integer
While Tag1Pos <> -1
Tag2Pos = str1.IndexOf(Tag2, Tag1Pos + Tag1.Length)
If Tag2Pos <> -1 Then
arr1.Add(str1.Substring(Tag1Pos + Tag1.Length, Tag2Pos - Tag1Pos - Tag1.Length))
Tag1Pos = str1.IndexOf(Tag1, Tag2Pos + 1)
Else
Exit While
End If
End While
For i As Integer = 0 To arr1.Count - 1
Debug.Print("arr1(" & i & ") = " & arr1(i))
Next
|