Results 1 to 7 of 7

Thread: Casewhere I don't understand this...

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    124

    Red face Casewhere I don't understand this...

    OK, its time for another noobish question, and its about Casewhere structures. Now back in VB6 I managed to get a casewhere structure working successfully, but by now I don't know how.

    My Problem: I have a Combo Box on my form with a Collection of around 380 objects. I need to store specific variables under each selection in the Collection and I feel that casewhere is better than:

    VB Code:
    1. If cboObject.WhateverItemSelected = True Then
    2.     Do This
    3. Else If cboObject.WhateverItemSelected = True Do This
    4. Else If cboObject.WhateverItemSelected = True Do This
    5. Else If cboObject.WhateverItemSelected = True Do This
    6. 'And this goes on for all objects
    7. End If

    So basically, casewhere would be better right? I could make a DB but I only have FileMaker and I haven't the slightest clue on how to implement a DB made in FM into a program. I'm not even at that level yet in VB.NET book! So anyway, How do I make a casewhere Thanks...
    Last edited by martw; May 6th, 2005 at 10:27 PM. Reason: Slight Error.

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