TIP: Click on subject to list as thread! ANSI
echo: delphi
to: OLE ALMIND MORTENSEN
from: MARTIN MAAT
date: 1997-05-18 12:34:00
subject: Array consisting of sw_Shownormal, sw_sh12:34:4305/18/97

Hallo Ole
 OAM>> I can't figure how to create this array, or what ever it is.
 TM> I haven't done this or even attempted, but it seems to me that this
 TM> should be a SET of integer.  Try this with a set instead of an
 TM> array....
 OAM> Is there someone who can explain how to make a Set Of Integer for
 OAM> a property? 
I'll make it a set of an enumerated type, which is the cooler way to go, but 
feel free to substitute do1 etcetera with plain integers.
type
  TDisplayOption  = (do1, do2, do3, do4, do5);   // enumerated type
  TDisplayOptions = set of TDisplayOption;       // your set
  TSomeObject = class(TCustomSomeObject)
  private
    procedure SetDisplayOptions(ADisplayOptions :TDisplayOptions);
  published
    property DisplayOptions :TDisplayOptions  
          read FDisplayOptions  write SetDisplayOptions
  end;
Groeten, Martin.
--- FMail/386 1.02
---------------
* Origin: -=[ E-mail: m_maat@knoware.nl .......... ]=- (2:286/420.1)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.