Results 1 to 4 of 4

Thread: checking multiple variables (resolved)

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    125

    Resolved checking multiple variables (resolved)

    fairly simple question, is there any way to check the status of multi variables at once? I figure if it is possible they would have to be variables with arrays

    such as,

    currently that i have to use:
    VB Code:
    1. dim var(1 to 5) as boolean
    2. If var(1) = true then 'do whatever code goes here
    3. If var(2) = true then 'do whatever code goes here
    4. If var(3) = true then 'do whatever code goes here
    5. If var(4) = true then 'do whatever code goes here
    6. If var(5) = true then 'do whatever code goes here

    what i have want, but didnt work out:
    VB Code:
    1. dim var(1 to 5) as boolean
    2. If var(1 to 5) = true then 'do whatever code goes here
    Last edited by Resilience; Aug 19th, 2005 at 03:17 AM. Reason: resolved
    --- Science does not explain why things are what they are. What we get from Science is our interpretation of how things do what they do.
    --- No Scientific law of the universe is stable, we did not create it, and we will never understand all of its abilities.
    --- What we determine as reality is a mere assumption of what tomorrow will be based on what yesterday was.

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