Results 1 to 5 of 5

Thread: If else statement help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2011
    Posts
    97

    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 2011
    Posts
    178

    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 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    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: 113
Size:  11.9 KB
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  4. #4
    Addicted Member
    Join Date
    Nov 2011
    Posts
    178

    Re: If else statement help

    r u being sarcastic or something?

  5. #5
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    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
  •  



Click Here to Expand Forum to Full Width