Results 1 to 12 of 12

Thread: vbcode

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    vbcode

    [vbcode]

    Dim int As String

    [/vbcode]

    vb Code:
    1. Dim int As String

  2. #2
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: vbcode

    [vbcode]
    If Msgbox("Does this work?,vbQuestion") = vbYes Then
    Msgbox "It worked"
    Else
    Msgbox "It didn't work"
    End If
    [/vbcode]

  3. #3

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: vbcode

    More typing required to get the [highlight=vb] tags in place, but that's what a good coder does. He types.

    Or he could just press the VBCode button and add =vb in there.

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: vbcode

    If you use the Quick Reply box, the =vb part is added automatically when you click on "Post ...", but not for "Go Advanced".

    It's not ideal, but seems to be the best that can be done given the way this version of the forum software works.

  5. #5

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: vbcode

    vb Code:
    1. Dim si_the_geek As Object

  6. #6

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: vbcode

    Very good! I'm sure you get tired of being treated like an object though...

  7. #7
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: vbcode

    It depends on the circumstances.. I'll never get tired of being Dim tho!

  8. #8
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: vbcode

    vb Code:
    1. Dim i As Integer
    2. i = 2
    3. Msgbox "This is attempt #" & i


    EDIT: Woohoo, got it working
    Last edited by lintz; Mar 16th, 2007 at 02:23 AM.

  9. #9
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148

    Re: vbcode

    [vbcode]
    Dim foo as Object
    [/vbcode]

  10. #10
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: vbcode

    The [vbcode] tags are gone, this is the new tag:
    [HIGHLIGHT=vb]
    Dim foo as Object
    [/HIGHLIGHT]

    ..which gives:
    vb Code:
    1. Dim foo as Object

    There are also other languages it covers, so instead of just "vb" you can also use "c#", "sql", etc.. some examples can be seen here

  11. #11
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    Re: vbcode

    I prefer [CODE] tags
    Code:
    
    Option Explicit
    
    Private Sub Form_Load()
        Dim SiTheGeek As Object
        SiTheGeek.Caption = "I'm a Geek not Greek"
        For i = 1 To 8
            SiTheGeek.RepPoints.Add
        Next
        SiTheGeek.Avatar = Picture1.Picture
        
    End Sub

  12. #12
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: vbcode

    At the moment so do I (not that I bother with all the work of colouring it tho!), but we should have 'corrections' to the Highlight tags in a month or so.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width