Article View: borland.public.cppbuilder.nativeapi
Article #8186Re: using TStrings and inserting special charaters
From: Remy Lebeau (TeamB)
Date: Sun, 14 Nov 2004 07:07
Date: Sun, 14 Nov 2004 07:07
26 lines
1817 bytes
1817 bytes
"Les" <None> wrote in message news:419683bf@newsgroups.borland.com...
> How does one put say a Hex FF into a String in Builder.
AnsiString is based on 'signed char'. 0xFF is not a valid character for
'signed char', unless you don't mind having a character with a negative
numeric value.
> IE.String = "Derin worker the first 2 words are names.Jeff Dant 2 more"
> I would like to be able to put $FF after the '.' and before Jeff.
Use an escape sequence:
IE.String = "Derin worker the first 2 words are names.\xFFJeff Dant 2
more"
> I am reading text from a DBMemo and all the individual strings are
> just added to the memo. No separaters of any kind. and I need to be
> able to read in the Text as individual strings.
Have you tried using the Lines property yet? It already separates the
overall Text into individual strings, one per line.
Gambit
Technical Details
Message-ID:
<419703d8@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!news.cambrium.nl!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<419683bf@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,eb2af5e8470f1dc2 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <419683bf@newsgroups.borland.com> Subject: Re: using TStrings and inserting special charaters Date: Sat, 13 Nov 2004 23:07:40 -0800 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <419703d8@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1100415960 68.69.17.41 (13 Nov 2004 23:06:00 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!news.cambrium.nl!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail