VB Challenge - Limpkinw.Com

Announcement

Collapse
No announcement yet.

VB Challenge

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • VB Challenge

    Here's a challenge for you all. Well, really just something for me, but I'm too lazy to do it on my own and I figured I'd give you all a chance to do it for me . Anyway, I need something to search a string for all the occurences of the face emote, i.e. "':' and ')'". Then to replace it with the picture of the smiley that is included with Y!Messenger. I already have the function to replace it with the smiley picture, so I just want the function to replace all the occurrences with the picture.

    Here's what I got so far (It only searches for one occurence of the smile emote though).

    Code:
    Dim aStr as String, aStr2 as String, aStr3 as String
    Dim IntRead as Integer
    
        StrText = "Happy :) Guy" + vbCrlf
        Select Case True
            Case InStr(1, StrText, ":" + Chr(41))
                aStr = StdPicAsRTF(frmLobby.Smile)
                IntRead = InStr(1, StrText, ":" + Chr(41))
                aStr2 = Left(StrText, IntRead - 1)
                aStr3 = Mid(StrText, IntRead + 2, Len(StrText))
                StrText = aStr3
            
            Case InStr(1, StrText, ":" + Chr(40))
                aStr = StdPicAsRTF(frmLobby.Frown)
                IntRead = InStr(1, StrText, ":" + Chr(40))
                aStr2 = Left(StrText, IntRead - 1)
                aStr3 = Mid(StrText, IntRead + 2, Len(StrText))
                StrText = aStr3
            
            Case Else
                Output.SelStart = Len(Output.Text)
                Output.SelRTF = StrText
                Exit Sub
                
        End Select
    
        Output.SelStart = Len(Output.Text)
        Output.SelRTF = aStr2 'adds substring before the ':)'
        Output.SelRTF = aStr   'adds the Picture
        Output.SelRTF = aStr3 'adds substring after ':)'
    That's it. Good luck all and thanks!
    Last edited by Mark__C; 09-25-2002, 12:32 AM.

  • #2
    I got 22 days before I leave for boot camp soon as im infront of my puter ill take a wack at it
    Twisted minds are best left to unwind

    Comment


    • #3
      well im lost from the start lol ill learn more bout coding once i d/l vb6 lol
      We didnt make the rules so why should we follow them.

      Comment


      • #4
        hows the prog coming along mark?

        Comment


        • #5
          Well, I haven't been able to do alot of updating to any of my programs nor my website due to some personal stuff. However, I am reading about API so I can customize the GUI to my liking.

          Comment


          • #6
            cool, is it possible any of your progs are available for free?

            Comment


            • #7
              i like ur pool program
              looks great
              but when is the real version of HUSTLER coming out?
              Nuff SaiD,PeAcE aLL

              (`._ (`._--=**^Xx_Sephiroth___xX^}=--_.`) _.`) aka
              (`._ (`._--=**^Xx_SeifeR___xX^}=--_.`) _.`)


              [ <-- Q44PR Netowrk --> ]
              From Dark Portal Studios
              .-~*'-VeGeTa-'*~-.

              Comment


              • #8
                Most likely, I will just give it (when it is completed, that is) to a few close friends. This is because the more people that have such a program, the more likely it will be disabled.

                Comment


                • #9
                  oh aiight
                  im jus saying it RULES!
                  Nuff SaiD,PeAcE aLL

                  (`._ (`._--=**^Xx_Sephiroth___xX^}=--_.`) _.`) aka
                  (`._ (`._--=**^Xx_SeifeR___xX^}=--_.`) _.`)


                  [ <-- Q44PR Netowrk --> ]
                  From Dark Portal Studios
                  .-~*'-VeGeTa-'*~-.

                  Comment


                  • #10
                    yea its a nice gui, i like how you have the pool table in the background

                    Comment


                    • #11
                      what is vb coding? seriously..

                      Can someone help me make an all star id with all-star source code? I think it is related to vb coding

                      Comment


                      • #12
                        No its not, download visual basic 6 and get some tutorials..visual basic is a basic form of making programs.. best place to start, mark or andy... u reccomend any deceent sites for him? I duno, i do mine outta books n $hit
                        [gl]HACKERS WEBSITE[/gl]

                        Comment


                        • #13
                          mark.limpkinw.com is where the HUSTLER Demo is, right?
                          Nuff SaiD,PeAcE aLL

                          (`._ (`._--=**^Xx_Sephiroth___xX^}=--_.`) _.`) aka
                          (`._ (`._--=**^Xx_SeifeR___xX^}=--_.`) _.`)


                          [ <-- Q44PR Netowrk --> ]
                          From Dark Portal Studios
                          .-~*'-VeGeTa-'*~-.

                          Comment


                          • #14
                            its not functional.. or maybe it is now, i havent checked lately

                            Comment

                            Working...
                            X