Results 1 to 7 of 7

Thread: Airline Program

Hybrid View

  1. #1
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    Jar, Norway
    Posts
    372

    Re: Airline Program

    Quote Originally Posted by S.J.Roger
    --in this section there should be code to display the name in the picture box which is taken from th i.d for exzample ScottW468PO4 should display the name Scott.
    Usually is the InStr-function used to see if some text has specific content.
    In your case Select Case is more useful. (As long as only five options of names are present)
    VB Code:
    1. Select Case i_d   ' Evaluate I_d.
    2.   Case "WallaceW468PO1"
    3.     Label1.Caption = "Wallace" '<- May be a label in the picturebox is what you want?
    4.   Case "LauderH48PO2"
    5.     ' and so on
    6.   Case "CarnegieA468PO3"
    7.     '
    8.   Case "ScottW468PO4"
    9.     '
    10.   Case "DeBruisR468PO5"
    11.     Label1.Caption = "DeBruis" '<- May be a label in the picturebox is what you want?
    12.   Case Else
    13.     ' so far no one
    14. End Select

  2. #2

    Thread Starter
    New Member
    Join Date
    Dec 2006
    Posts
    4

    Talking Re: Airline Program

    Thank you, I have completed the program now.

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