I need to capture dynamic values from previous request. Can you please know any build functions are there? I need to find list of dynamic values with same left and right boundary. Is there any build function is used to capture from previous script.
Well, generally the DO_GetUniqueString() function works great if you have a unique string somewhere near the start of the dynamic data. But it sounds like you have a list of data without unique strings around them.
What you will have to do is backup to the closest unique string at the beginning and end of the whole list, and then parse it out. Check out c++ string functinos like strstr() - this returns a pointer to a string within in a string which you can then use to parse with. Be cautious about using c++ string functions that don't automatically append the null string terminator "\0" because it will give you an error when you try to use the string w/out that (you may have to append it if you use functions strncpy()).
Giving an example of the html you are trying to parse will help folks give better suggestions. But back to parsing, if you have this list captured to a char *ptr then you can move the pointer to the variable you want presuming you can find a way to get the char count to the data you want.
So, if this isn't enough info, post an example of the html.
Here is a simple example where the final index # I'm trying to get can be variable length. So I'm using the above method to get to the beginning of the string I want with the understanding that the dynamic length is handled because the string is null terminated.
char *acty_index_strPtr, *temp_strPtr
//Here is the string with the unique end points for DO_GetUniqueString():
//Process DRO <b>(18)</b></td> <td colspan="10">&nbsp;<a name="tag_44"></a>
//Then use strstr() to get a pointer to "tag_44"
temp_strPtr = strstr(DO_GetUniqueString("Process DRO","\"></a>"),"tag_");
Not sure if necessary, but I was worried about memory leaks, that is why I used the temp_strPtr first before I move the pointer, so that I can free the temp pointer. At the end of the script, I free the acty_index_strPrt.