Re: Kind of a newb question



Vu Quang Thang wrote:
"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


thanks 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: 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)
  • Re: Passing a string from a C DLL to VB
    ... I'm making a Win32 DLL ... Josh ... > VB does not work with simple null-terminated character arrays. ... A BSTR consists of a pointer to a Unicode string, ...
    (microsoft.public.vc.language)
  • RE: System info in header/footer.
    ... Josh, if you don't like the uppercase names, just change: ... >> Function ReturnUserName() As String ... >> Function ReturnComputerNameAs String ...
    (microsoft.public.excel.programming)
  • RE: System info in header/footer.
    ... Sorry Josh, I am not sure how to get a "list of attributes" for a .dll file. ... You may want ot check the MS website. ... >> Function ReturnUserName() As String ... >> Function ReturnComputerNameAs String ...
    (microsoft.public.excel.programming)