AuthorMessage
Meka][Meka
Unstopable
Posts: 700

vb7.net is much better and have many more classes which are very useful, lets go thru the vb6 version to vb7
dimming i to 0
vb6:
Code:

dim i as single
i = 0

vb7:
Code:

dim i as single = 0

note: vb7 uses integer as 32bit, and long as 64bit
splitting a string:
vb6:
Code:

        Dim tstring As String
        tstring = "1|2"
        Dim spr() As String
        spr = Split(tstring, "|")

vb7:
Code:

        Dim tstring As String = "1|2"
        Dim spr() As String = tstring.Split("|")

ok now getting the splitup strings upperbound
vb6:
Code:

        Dim UB As Single
        UB = UBound(spr)

vb7:
Code:

        Dim UB As Single = spr.GetUpperBound(0)

string appending:
vb6:
Code:

        Dim str As String
        Dim i As Integer
        For i = 0 To 100
            str = str & "lol"
        Next

vb7:
Code:

        Dim str As System.Text.StringBuilder
        For i As Integer = 0 To 100
            str.Append("lol")
        Next
        'note to get the strings value its str.ToString()

well thats all i can think of now, thers loads more, but i'll jus wait til u ask  8)
-/Meka][Meka
Corayzon
Regular
Posts: 67

changes look good meka, more of a c approch in the declaring i notice =] ...
my question though... u know where i can get a download of just vb7?
ive had no luck on dc++ for just vb and my bandwidth is to crap to be downloading the entire studio =[
cheers
Meka][Meka
Unstopable
Posts: 700

Quoted from Corayzon
changes look good meka, more of a c approch in the declaring i notice =] ...
my question though... u know where i can get a download of just vb7?
ive had no luck on dc++ for just vb and my bandwidth is to crap to be downloading the entire studio =[
cheers

this is not a warez forum, go buy it 
Corayzon
Regular
Posts: 67

cheers Meka][Meka mate,
thats what im gonna go do ;), get my work to pay for it lol
Meka][Meka
Unstopable
Posts: 700

Quoted from Corayzon
cheers Meka][Meka mate,
thats what im gonna go do ;), get my work to pay for it lol

good man :wink: