Can anyone tell me how to write a correct WebParseResponseData statement to parse out the person id(28270) from the following html source:
Thanks in advance.
I am assuming this is the actual code:
You will need to put the following line of code BEFORE the WebPageUrl that contains this piece of code
You will obvisouly have to declare sId.
So the order is:
Thank you for your response, yes, you are right the actual html code is:
I had tried the sample code that you post earlier, it did parse the 1st person id out from the page, but if there are more than 1 person id on the page and the id that I would like to parse out is actually the 5th one from the page, not the 1st one, so is any parameter I should use in order to parse out the correct data?
Thanks in advance
Just check the 5th personID (or what ever) in the HTML and if you can find a unique 'left boundary' and a 'right boundary', then apply that one to the WebParseRespnseData.
If there's not a unique delimiter before the 5th ID that you need to capture, using WebParseResponseData is only half of your solution. You'll have to capture the entire block of code that has all of the ID's in it (or, perhaps, capture the entire page) and then use StrSearchDelimited to parse out just the one that you want.
Something like this....
With StrSearchDelimited you can specify which item to get by increasing the number of instances of the left delimiter from which to begin the capture.
StrSearchDelimited takes some getting used to with all of the parameters, but it's a very powerful parsing tool once you get used to all the parameters and when to use what where.
A concerned Borland customer, a fly in the ointment, a wrench in the works.