Results 1 to 3 of 3

Thread: verschillen sets

  1. #1
    Reader
    Join Date
    May 2002
    Location
    Holland
    Posts
    3,382

    verschillen sets

    Hallo, ik zit even in verwarring:

    Ik heb een enumerated set property laten we zeggen Options.
    Wanneer ik de property zet wil ik de verschillen weten:
    1) Welke opties komen erbij
    2) Welke opties gaan eraf

    Code:
    type
      TOption = (oSoep, oGroente, oVlees, oPannenkoek, oSnoep)
      TOptions = set of TOption;
    
    procedure TTest.SetOptions(const Value: TOptions);
    var
      Enter, Leave: TOptions;
    begin
      Enter := ???
      Leave := ???
      fOptions := Value;
    end;
    Groeten, Eric

  2. #2
    Senior Member PsychoMark's Avatar
    Join Date
    Nov 2001
    Location
    Raamsdonksveer
    Posts
    10,269
    Even uit m'n hoofd:

    Code:
    Enter := Value - FOptions;
    Leave := FOptions - Value;
    Qui custodiet ipsos custodes

  3. #3
    Reader
    Join Date
    May 2002
    Location
    Holland
    Posts
    3,382
    Dat werkt voorzover ik het nu kan zien. Dank.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 7
    Last Post: 22-Feb-05, 14:11
  2. Overzicht verschillen Delphi 5, 6, 7
    By Ramon in forum Algemeen
    Replies: 1
    Last Post: 13-May-04, 13:35
  3. Open Source licenties - verschillen
    By Anders in forum Koffiehoek
    Replies: 4
    Last Post: 08-May-03, 10:22
  4. Everything You Need to Know About InterBase Character Sets
    By Marcel in forum Interbase / FireBird
    Replies: 0
    Last Post: 13-Apr-03, 21:58
  5. Sets... hoe te declareren?
    By Cryothic in forum Algemeen
    Replies: 9
    Last Post: 31-Jul-02, 23:41

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
  •