Given one or more lines of text which are known at compilation time, and
without the requirement to internationalize (these are, by RFC, US
ASCII), what is the best way to get them into a TStringList?
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not
On 06/2/11 1:55, Mark Morgan Lloyd wrote:
Given one or more lines of text which are known at compilation time, and
without the requirement to internationalize (these are, by RFC, US
ASCII), what is the best way to get them into a TStringList?
Perhaps there are better ways than the straightforwa
On 06.02.2011 15:19, Howard Page-Clark wrote:
On 06/2/11 1:55, Mark Morgan Lloyd wrote:
Given one or more lines of text which are known at compilation time, and
without the requirement to internationalize (these are, by RFC, US
ASCII), what is the best way to get them into a TStringList?
Perha
Sven Barth kirjoitti sunnuntai 06 helmikuu 2011 16:24:49:
> FPreInitialisedSList.Text := StringsToUse;
>
> Note: You can also define StringsToUse as a typeless constant, e.g.:
>
> const StringsToUse = 'Line 1' + LineEnding +
> 'Line 2' + LineEnding +
>
Juha Manninen wrote:
Sven Barth kirjoitti sunnuntai 06 helmikuu 2011 16:24:49:
FPreInitialisedSList.Text := StringsToUse;
Note: You can also define StringsToUse as a typeless constant, e.g.:
const StringsToUse = 'Line 1' + LineEnding +
'Line 2' + LineEnding +
On Sat, Feb 5, 2011 at 8:59 AM, ik wrote:
>
> Webkit already translated to Pascal, and you use the API, and the amount of
> time to use the API is shorter then the amount of time to translate the
> header files imho.
Well... I didn't know that...
> You need to load the page to the browser and us
Mark Morgan Lloyd kirjoitti sunnuntai 06 helmikuu 2011 17:50:05:
> Is it possible to set up the text as an attribute (I'm avoiding the word
> property here for obvious reasons) of the entire class rather than of an
> instance?
The const array could be outside of any class.
It is global if declared
On Sat, 05 Feb 2011 15:51:37 +0100, Florian Klaempfl
wrote:
>Am 05.02.2011 10:46, schrieb Bo Berglund:
>> But that is not what I am doing at all, so I can stick with a simple:
>>
>> FillArr(Arr: TByteArr)
>>
>> and be sure that I will not get back a different array, but instead
>> get my array fi
Am 06.02.2011 18:53, schrieb Bo Berglund:
>
> So in summary:
> If the called method changes the length of teh dynamic array it must
> be passed as a var, otherwise the length change will be lost when
> exiting the method.
I'd even propose that one uses var as soon as he plans to change the
array.