🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #139860

[Dialog] Scripting String type

#139860
From: Warwick
Date: Fri, 26 Dec 2003 09:51
26 lines
2049 bytes
Hi,
I have tried the following two statements in a script.
VAR
      i, pos : integer;
      tmp : string;
    BEGIN  
      tmp := Copy( memo.Lines.Strings[i], 1, 255 ); 
  or  tmp := memo.Lines.Strings[i];
   END;
In each case tmp might have basically anything at all assigned into it
execpt the string in memo.Lines.Strings[i].
Often is has the first chars up to a space, or the chars after the first
space, sometimes nothing at all ... or other interesting behaviour.
Can I include a file in the uses clause and access the AnsiString type?

I have created a dbug function to set watches and breakpoints and examined
the contents of memo. Nothing wrong with the contents of the TStrings
object. 
Problem is in assignments and I'd prefer not to get bogged down with basic
string functions when I am already familiar with AnsiString.

Any help most appreciated.

 
best
Warwick
Technical Details
Message-ID: <1b6u8igdk34r0$.a6efjxy49gi9.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-out.visi.com!petbe.visi.com!news1.optus.net.au!optus!news.mel.connect.com.au!news.xtra.co.nz!53ab2750!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <1b6u8igdk34r0$.a6efjxy49gi9.dlg@40tude.net>
Subject: [Dialog] Scripting String type
Date: Fri, 26 Dec 2003 22:51:38 +1300
From: Warwick <wjcb@extra.co.nz>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-out.visi.com!petbe.visi.com!news1.optus.net.au!optus!news.mel.connect.com.au!news.xtra.co.nz!53ab2750!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.8.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Lines: 26
NNTP-Posting-Host: 203.96.104.181
X-Complaints-To: newsadmin@xtra.co.nz
X-Trace: news.xtra.co.nz 1072432295 203.96.104.181 (Fri,
NNTP-Posting-Date: Fri, 26 Dec 2003 22:51:35 NZDT
Organization: Xtra