Ingenious!
Sometimes you find a code fragment that’s so great you only wish it was your idea … const fm: array[Boolean] of Word = (fmCreate, fmOpenWrite);fs := TFileStream.Create(fileName, fm[FileExists(fn)]);Obvious – in retrospective. --- Published under the Creative Commons Attribution 3.0 licensehttp://feeds.feedburner.com/~r/delph...~4/HTcrmgVko7Y
More... |
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:55 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz