Results 1 to 7 of 7

Thread: VB Variables

Hybrid View

  1. #1
    Fanatic Member Megalith's Avatar
    Join Date
    Oct 2006
    Location
    Secret location in the UK
    Posts
    879

    Re: VB Variables

    @marman, would that not be

    vb Code:
    1. Dim radio as New RadioButton
    2. radio=RadioButton1

    if i get your question correctly then i would place all the questions, answers in a list(of QA) {where QA would be defined by a structure containing Question, AnswerA,AnswerB etc and anything else (like score)} then i would create a random number function which would populate the list(of QA) with randomly selected questions from your database (ensuring in this function that you have not duplicated the question in the list already. It is then a case of using a For each loop to populate the form contents.
    If debugging is the process of removing bugs, then programming must be the process of putting them in.

  2. #2
    Frenzied Member
    Join Date
    Jan 2010
    Location
    Connecticut
    Posts
    1,687

    Re: VB Variables

    @Megalith: Depends. Do you want an existing radiobutton or a new one. If you want a new one then your first statement is correct since it creates a new button. But then you destroy the new button with your second statement which replaces the new button with an existing one.

    We don't know since it wasn't explained clearly. But choices are good!
    VB6 Library

    If I helped you then please help me and rate my post!
    If you solved your problem, then please mark the post resolved

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