Results 1 to 3 of 3
  1. #1
    cosconub's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in the programming section MPGH Cash: $90,000,000,000
    Posts
    372
    Reputation
    -4
    Thanks
    39
    My Mood
    Psychedelic

    [help] modding blubbs shoutbox

    ok i am editing blubbs shoutbox for my needs

    i edited a part of the code and on the chatbox it returns FALSE

    this is my code

    Code:
     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            '0 = Username, 1 = Post, 2 = Email, 3 = Date, 4 = Time
            DisableCloseButton(Me.Handle)
            For Each s As String In ShoutBox.GetAllEntrys("|")
    
                Dim x() As String = Split(s, "|")
                Dim username As String = x(0)
                Dim post As String = x(1)
                Dim curdate As String = x(3)
                Dim curtime As String = x(4)
                Dim full As String = curdate + " " + username = ": " + post
                'curdate + username =": " + post
                lvMain.Items.Add(full)
    
            Next
        End Sub
    


    How can i have chat box return like this unstead of the default way?

    would i have to change the split so it would look like this?

    Code:
     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            '0 = Username, 1 = Post, 2 = Email, 3 = Date, 4 = Time
            DisableCloseButton(Me.Handle)
            For Each s As String In ShoutBox.GetAllEntrys("|")
    
                Dim x() As String = Split(s, "|")
                Dim username As String = x(1)
                Dim post As String = x(2)
                Dim curdate As String = x(0)
                Dim full As String = curdate + " " + username = ": " + post
                'curdate + username =": " + post
                lvMain.Items.Add(full)
    
            Next
        End Sub
    

    Thanks Jason for the color Syntax, IT's Epic
    Last edited by cosconub; 01-25-2011 at 07:45 PM.

    A man is but the product of his thoughts what he thinks, he becomes.
    ~Mohandas Gandhi


    A Genius is nothing with out an idea, An idea is always an idea even without a genius.
    ~ Immortal

  2. #2
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Code:
    Dim full As String = curdate + " " + username = ": " + post
    ???

    Code:
    Dim full As String = String.Format("{0} {1}: {2}", curdate,username,post)



  3. #3
    cosconub's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in the programming section MPGH Cash: $90,000,000,000
    Posts
    372
    Reputation
    -4
    Thanks
    39
    My Mood
    Psychedelic
    Quote Originally Posted by Blubb1337 View Post
    Code:
    Dim full As String = curdate + " " + username = ": " + post
    ???

    Code:
    Dim full As String = String.Format("{0} {1}: {2}", curdate,username,post)
    ill try this when i get home

    thanks blubb works =)
    Last edited by Lolland; 01-26-2011 at 03:05 PM.