Results 1 to 9 of 9

Thread: vb code appearance?

  1. #1
    Guest

    Post

    how do I post code so it really looks like VB code
    (blue keywords etc...)

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Post

    Use UBB code:
    [ code ] and [ /code ] without spaces between brackets.

    Code:
    Dim RetVal As Integer
    
    RetVal = MsgBox("This is a VB Code")

  3. #3
    Guest

    Post

    this is how I do it (test):

    Code:
    private sub DoItNow()
    
    for i = 1 to 10
    i=i
    next i
    
    do while i < 100
    i=i+1
    loop
    
    end sub

  4. #4
    Guest

    Post

    another test

    Code:
    private sub DoItNow()
    
    for i = 1 to 10
    i=i
    next i
    
    do while i < 100
    i=i+1
    loop
    
    end sub

  5. #5
    Guest

    Post

    I don't get it...

    why keywords are not blue?

  6. #6
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Post

    You must use the PrOpEr CaSe.

    Private not private (capital P)
    Code:
    Private Sub 'this should show up correctly
    private sub 'while this will not
    Good luck!

  7. #7
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Bellevue, WA, USA
    Posts
    1,357

    Post

    Check out this site:

    http://www.vb-world.net/forums/ubbcode.html

    for how to manipulate text in the bulletin board.

    ~seaweed

    Edited by seaweed on 02-24-2000 at 06:36 PM

  8. #8
    Guest

    Post

    Private Sub DoItNow()

    For i = 1 to 10
    i=i
    Next i

    Do While i < 100
    i=i+1
    Loop

    End Sub

  9. #9
    Guest

    Post

    it should work now
    Code:
    Private Sub DoItNow() 
    
    For i = 1 to 10 
    i=i 
    Next i 
    
    Do While i < 100 
    i=i+1 
    Loop 
    
    End Sub
    yeeeee

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