Results 1 to 3 of 3

Thread: Dynamisch opvullen DBRadiogroup

  1. #1

    Dynamisch opvullen DBRadiogroup

    Hallo,

    Ik probeer een DBRadiogroup op te vullen met volgende code :

    Code:
      
      // Fill DBRadiogroup
      with DataModule1.FDQ_XYZ do
        begin
          while not eof do
            begin
              DBRadioGroup8.Items.AddObject(FieldByName('ABC').AsString);
              Next;
            end;
        end;
    Blijkbaar mis ik nog iets bij de AddObject.
    Wat moet ik daar nog bijzetten?

    Alvast bedankt

    Lainkes

  2. #2
    Volgens mij kan je Add gebruiken. AddObject is voor als je een willekeurig object wilt linken aan een radiobutton (ter referentie). Je kan daar nil invullen als je niets hebt, maar volgens mij doet Add('x') in feite AddObject('x', nil).
    1+1=b

  3. #3
    Bedankt, zo simpel kan het zijn.

    Lainkes

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •