Results 1 to 5 of 5

Thread: If else statement help

  1. #1
    Lively Member
    Join Date
    Nov 11
    Posts
    85

    If else statement help

    hello
    i want to create a If , else loop ,


    like



    Code:
    If str1  starts with  char"a" then   ' like if str1 starts with char "a" then or else 
          '' code 
    else 
       '' code
    end if
    plzz can anyone help me for this??

  2. #2
    Addicted Member
    Join Date
    Nov 11
    Posts
    157

    Re: If else statement help

    try this
    if str1.StartsWith("a") then
    code
    else
    code
    end if

  3. #3
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 05
    Location
    Lansing, MI; USA
    Posts
    3,788

    Re: If else statement help

    Quote Originally Posted by Binarybot View Post
    hello
    i want to create a If , else loop ,


    like



    Code:
    If str1  starts with  char"a" then   ' like if str1 starts with char "a" then or else 
          '' code 
    else 
       '' code
    end if
    plzz can anyone help me for this??
    Quote Originally Posted by ashley.s View Post
    try this
    if str1.StartsWith("a") then
    code
    else
    code
    end if
    I'm sorry, I just can't help but post this
    Name:  genius-meme.png
Views: 45
Size:  11.9 KB
    Currently using: VS 2010 Ultimate on Win7 Ultimate x64.



    CodeBank: All Threads • Colors ComboBox • Fading & Gradient Form • MoveItemListBox/MoveItemListView • MultilineListBox • MenuButton • ToolStripCheckBox • Start with Windows

  4. #4
    Addicted Member
    Join Date
    Nov 11
    Posts
    157

    Re: If else statement help

    r u being sarcastic or something?

  5. #5
    PowerPoster
    Join Date
    Mar 02
    Location
    UK
    Posts
    4,063

    Re: If else statement help

    I think it was pointing out that the OP could just remove the spaces and it would work .

Posting Permissions

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