Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

VB Problem very basic

  • 03-06-2004 05:20PM
    #1
    Closed Accounts Posts: 1,309 ✭✭✭


    'For intIndex = 1 To 5
    'For intInner = intIndex To 5
    'strOutput = strOutput & "*"
    'Next intInner

    'strOutput = strOutput & vbNewLine
    'Next intIndex

    'MsgBox strOutput


    'strOutput = ""
    'For intIndex = 5 To 1 Step -1
    'For intInner = intIndex To 5
    'strOutput = strOutput & " *"
    'Next intInner
    'strOutput = strOutput & vbNewLine
    'Next intIndex
    'MsgBox strOutput




    *
    **
    ***
    ****
    *****

    *****
    ****
    ***
    **
    *

    what i want to do is output this

    **********
    **********
    **********
    **********
    **********
    **********
    **********
    **********
    **********
    **********


Comments

  • Registered Users, Registered Users 2 Posts: 541 ✭✭✭Vorrtexx


    You want to output the 10x10 stars?

    For intIndex = 1 To 10
    For intInner = 1 To 10
    strOutput = strOutput & "*"
    Next intInner

    strOutput = strOutput & vbNewLine
    Next intIndex

    MsgBox strOutput


  • Closed Accounts Posts: 1,309 ✭✭✭Kazu


    thank you so ****ing easy why didnt i think of that


Advertisement