Results 1 to 7 of 7

Thread: IF statement

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    132

    Exclamation

    is there a limit in VB on how many elseif commands you can have in an if statment/
    Reality is an illusion caused by by lack of drugs

    Is this real or am i just having a dream?

  2. #2
    Addicted Member
    Join Date
    Apr 2000
    Location
    Sheffield, England.
    Posts
    136
    There's no limit on the amount of 'else' commands you can use.

    The amount of nested If... EndIf statements is limited, and depends on the amount of free stack space. Generally you won't need to worry about it as it's a ridiculously high number.
    Visual Basic 6 Enterprise Edition + SP4

  3. #3
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565
    If you're using that many ElseIf's why dont you use a Case statement.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    132
    when i want to search for a field and the released field i do not get any results, just the field names and thats it.
    Reality is an illusion caused by by lack of drugs

    Is this real or am i just having a dream?

  5. #5
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565

    Question

    What?????

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    132

    Talking

    that last post by me wasn't meant to go here. It was meant for another thread.
    Reality is an illusion caused by by lack of drugs

    Is this real or am i just having a dream?

  7. #7
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565
    Ahhh. Thought I was going mad.


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