SET or Enum Question
From: Steve Reiss (NoSPAM_at_cruzio.com)
Date: 02/27/05
- Previous message: Rob Kennedy: "Re: Threads & arrays"
- Next in thread: Toon Krijthe: "Re: SET or Enum Question"
- Reply: Toon Krijthe: "Re: SET or Enum Question"
- Reply: Jamie: "Re: SET or Enum Question"
- Reply: alanglloyd_at_aol.com: "Re: SET or Enum Question"
- Reply: Bruce Roberts: "Re: SET or Enum Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 27 Feb 2005 14:43:35 -0800
Hi All!
I have a section of Delphi 7 code that I want to perform certain
operations on files with various extensions.
Basically, I want to have it so that I can add additional file extensions
to a list and call similar routines.
type
ValidFileExtensions = (exe, dll, ocx); <-- the valid file extensions
// ValidExtensions = set of ['.dll', '.ocx']; <<-- didn't work
var
CheckExtensions : ValidFileExtensions;
// Get the version info from selected file types:
if (sCurrentExtension = '.exe') OR (sCurrentExtension = '.dll') OR (sCurrentExtension = '.ocx') Then
// if sCurrentExtension IN CheckExtensions Then <<--- Operation Not allowed!
begin
sVersionInfo := ReadVerInfo(sCurrentFile);
....
end;
Any help on this would be greatly appreciated!
Steve
Paradox Database Consulting Page :
http://members.cruzio.com/~stever/index.html
+-------------------------------------------------------------+
Anti-SPAM Device in Place :
To Reply : REMOVE "NoSpam" and replace it with "stever"
+-------------------------------------------------------------+
- Previous message: Rob Kennedy: "Re: Threads & arrays"
- Next in thread: Toon Krijthe: "Re: SET or Enum Question"
- Reply: Toon Krijthe: "Re: SET or Enum Question"
- Reply: Jamie: "Re: SET or Enum Question"
- Reply: alanglloyd_at_aol.com: "Re: SET or Enum Question"
- Reply: Bruce Roberts: "Re: SET or Enum Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|