-
[VB6] Merge 2 string arrays
Just made this, so why not share it.
Code:
Private Sub Form_Load()
Dim sArr1(0) As String
Dim sArr2(0) As String
sArr1(0) = "wow"
sArr2(0) = "cool"
MsgBox MergeArray(sArr1(), sArr2())(0)
MsgBox MergeArray(sArr1(), sArr2())(1)
End Sub
Private Function MergeArray(sArr1() As String, sArr2() As String) As String()
Dim i As Long
Dim sTemp() As String
On Error Resume Next
ReDim sTemp(UBound(sArr1) + UBound(sArr2) + 2)
For i = 0 To UBound(sArr1())
sTemp(i) = sArr1(i)
Next i
For i = UBound(sArr1()) + 1 To UBound(sArr1()) + 1 + UBound(sArr2())
sTemp(i) = sArr2(i - (UBound(sArr1()) + 1))
Next i
MergeArray = sTemp
End Function
-
really nice done squeezer this will be usfull for a project of mine thanks.
[FONT="Tahoma"][SIZE="4"][COLOR="Red"]The Art of Mind Fucking...[/COLOR][/SIZE][/FONT]
-
I just reinstalled VB awhile ago, good example.
[code]if( cumshot ->squirts() == hands ) {
do {
hands->wash();
} while( hands->sticky() );
}[/code]
[code]http://qualitytobacco.blogspot.com/[/code]
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
By counterstrikewi in forum Delphi Help
Replies: 3
Last Post: 23-09-2009, 21:44
-
By wolf in forum Visual Basic Help
Replies: 1
Last Post: 14-12-2007, 13:38
-
By wolf in forum General Programming Help
Replies: 2
Last Post: 14-12-2007, 13:38
-
By WEZ_2511 in forum Delphi Help
Replies: 0
Last Post: 12-07-2006, 21:02
-
By Xploit in forum Delphi Help
Replies: 3
Last Post: 31-12-2005, 15:39
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
All times are GMT +1. The time now is 21:50.
www.opensc.ws
Copyright ©2005 - 2012, OpenSC Forums
Search Engine Friendly URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.