About
Pricing
Community
Teams
Start Free Trial
Log in
sal1150
asked on
1/26/2005
search and copy from html page
I get htis line from my html page.
I want to take (parse) only the status "market closed" and put it in editbox.
<TD class=index_up_pre_open id=PC_7_1_569_TASI_MARKET_
STATUS noWrap
align=middle height=18>market closed </TD>
Delphi
3
1
Last Comment
sal1150
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
zion29
1/26/2005
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Lesko987
1/26/2005
Hi sal1150,
Maybe you can just check if text "market closed" appears in page.
Function isMarketClosed (HTMLPage: String): Boolean;
Begin
Result := Pos ('market closed', HTMLPage) > 0;
End;
and use it like this S being HTML document.
If isMarketClosed (S) Then Begin
//market is closed
End Else Begin
//market is opened
End;
Cheers!
sal1150
1/26/2005
ASKER
Hi Lesko987
no there are 4 status for the market
market closed
market open
market before close
market before open
any way I make some change in zion29 code and it is now ok.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Maybe you can just check if text "market closed" appears in page.
Function isMarketClosed (HTMLPage: String): Boolean;
Begin
Result := Pos ('market closed', HTMLPage) > 0;
End;
and use it like this S being HTML document.
If isMarketClosed (S) Then Begin
//market is closed
End Else Begin
//market is opened
End;
Cheers!