01-22-2008, 06:24 PM
Code:
Temp_Text_Whole = Browser("dfsd:=dfs").Page("dfse:=ndj).Webtable("innertext:= The .*).GetROProperty("innertext")
Startpos = Instr(1,Temp_Text_Whole, "is:")
endpos = (Instr(1,Temp_Text_Whole, "") - Startpos)
Temp_Text_Mid = mid(Temp_Text_Whole, Startpos, endpos )
Temp_Text_Id = trim(replace(Temp_Text_Mid , "ID: ", ""))
Split_Temp_Text_Id=split(Temp_Text_Id ,":",-1,1)
Temp_Text=Split_Temp_Text_Id(1)
msgbox (Temp_Text)
This code will capture entire line starting from "The" of the "The count for this is 7" and then it will trim to get the "Number" it may be 7 or 10 or even 100
Pls let me know the result
Regards
Raj