🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.documentation
Article #143

Re: Turbo Delphi - String Splitting - related to the help and documentation

#143
From: DJSox
Date: Mon, 30 Jul 2007 14:23
12 lines
1445 bytes
Hi Robert,
    Try replacing your:    ExtractStrings([','],[],Dataln,Contents1) with 
ExtractStrings([','],[],PChar(Dataln),Contents1) ;

Also, the stringlist you create needs to be freed when you are done, by 
calling Contents1.free, when you are through using it.

The function requires a null terminated(c-style) string, and you are using a 
Delphi style string. Luckily, Delphi strings can simply be cast to null 
terminated strings directly with PChar().

Dan
Technical Details
Message-ID: <46adf46c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46ad51f8$1@newsgroups.borland.com> <46ad6a43$1@newsgroups.borland.com> <46add1a3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10a202,9e8c64573cb861fd
X-Google-Attributes: gid10a202,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "DJSox" <thesoxfamily@verizon.net>
Newsgroups: borland.public.delphi.documentation
References: <46ad51f8$1@newsgroups.borland.com> <46ad6a43$1@newsgroups.borland.com> <46add1a3$1@newsgroups.borland.com>
Subject: Re: Turbo Delphi - String Splitting - related to the help and documentation
Date: Mon, 30 Jul 2007 07:23:39 -0700
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 71.254.136.219
Message-ID: <46adf46c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1185805420 71.254.136.219 (30 Jul 2007 07:23:40 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail