Some users of the components and units from the DelphiDabbler Code Library have contacted me to ask if the library's help is available in HTML help format because WinHelp format I used for the library won't work by default on Windows Vista and later. The answer is no - and I don't have time to do the conversions. However, all is not lost because there is now a Wiki for each of the Code Library projects hosted on Google Code. In future the Wikis will be updated in preference to the old WinHelp help files. View the list of available Wikis . Source code highlighting by DelphiDabbler PasHi .
Showing posts from September, 2010
- Other Apps
In my earlier post on this subject I presented some methods to use to initialise and clone dynamic arrays. Some comments to that post suggested a simpler approach using compiler features I didn't know existed. In this post I've simply collected the information from those comments together in one place. To initialise an array from literal values you can use the special array constructor provided by the compiler: uses Types ; var A : TIntegerDynArray ; begin A := TIntegerDynArray . Create ( 1 , 2 , 3 , 4 ) ; .. . end ; This also works when you define your own array types, for example: var TMyByteArray = array of Byte ; begin A := TMyByteArray . Create ( 1 , 2 , 3 , 4 ) ; .. . end ; And it also works for the TArray<T> generic array type: var IntArray : TArray < Integer > ; StrArray : TArray < string > ; begin IntArray := TArray < Integer > . Create ( 1 , 2 , 3 ) ; StrArray := TAr