Re: Kind of a newb question




"Josh Fraser" <jfraser@xxxxxxxxx> wrote in message
>
>
> What is the Delphi equivalent to add a new line in a string? Ex. C has
> '\n'
>
> Josh

Hi,

If you got a string from a string source dll, it will break line if the
string contains \n. If you want to break line a string in Delphi add #13.
E.g

ShowMessage('I will break line here.' + #13 + 'And this is new line.')

Thang


.



Relevant Pages

  • Re: StreamReader - ReadLine
    ... Thanks a lot Josh. ... The file was indeed Unix and I was able to import it the ... >>load every line in a string. ... >>there is a strange character that looks like a square and I cannot even ...
    (microsoft.public.dotnet.languages.vb)
  • Re: can someone please help me with making this class
    ... struct and another I put the insert in. ... string phoneNo; ... node *temp, *prev; ...
    (microsoft.public.vc.language)
  • Re: Handling Large files (a few Gb) in Perl
    ... search through each string looking for a specific character. ... my $prev = 0; ... sub use_length { ... Rate index length ...
    (comp.lang.perl.misc)
  • Re: can someone please help me with making this class
    ... string phoneNo; ... node *temp, *prev; ...
    (microsoft.public.vc.language)
  • Re: Hex2Bin in VB
    ... for Negative numbers the results are not similar to ATP's Dec2Bin.. ... results are leftpadded with 0s to multiples of 4 ... Function IntToBinAs String ... >>> Josh ...
    (microsoft.public.excel.programming)