🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1214

Re: Help me grab stock data from Yahoo Finance

#1214
From: Hans Galema
Date: Sun, 28 Aug 2005 07:29
25 lines
1902 bytes
LarryJ wrote:
> What is the Pos() method? Can you point me to a document describing the 
> Pos() method. I am not able to google this because Pos is too common.

Nonsence. Do an advanced newsgroup search.
http://www.google.nl/advanced_group_search?hl=en
Find messages with all of the words: AnsiString Pos
Return only messages from the group: *cppbuilder*

C++Builder: Type �AnsiString�, place the cursor in it and press F1.
You will get all the methods of AnsiString.

   AnsiString Line = "<table><tr><td>apple</td><td>12.34</td><tr></table>";

   int startpos = Line.Pos ( "<td>" ) + AnsiString("<td>").Length();
   int endpos   = Line.Pos ( "</td>" );

   AnsiString Content = Line.SubString ( startpos, endpos-startpos );

   ShowMessage ( Content);

You forgot to comment on the suggestion to use the second link which
gives a file table.csv. Please do.

Hans.
Technical Details
Message-ID: <431167c0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <43103138@newsgroups.borland.com> <43104d6e@newsgroups.borland.com> <43114159@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,7f6dec7a9aa0e3d9
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII
Date: Sun, 28 Aug 2005 09:29:34 +0200
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.web
Subject: Re: Help me grab stock data from Yahoo Finance
References: <43103138@newsgroups.borland.com> <43104d6e@newsgroups.borland.com> <43114159@newsgroups.borland.com>
In-Reply-To: <43114159@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <431167c0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1125214144 129.125.201.248 (28 Aug 2005 00:29:04 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail