Page 1 of 1

on not found handling

Posted: Thu Oct 13, 2005 2:54 pm
by jiri
i have following problem:

on page 1 (e.g. http://www.worldlakes.org/lakedetails.asp?lakeid=8509) there is fix label "lake region" and it's dynamic data

on next page(e.g. http://www.worldlakes.org/lakedetails.asp?lakeid=10182), there is no label and no data.

Using relativ extraction search, i first go to the label:
TAG POS=1 TYPE=TD ATTR=TXT:Lake<SP>Region*
then i extract with
EXTRACT POS=R1 TYPE=TXT ATTR=<TD>*
i also use "go on on error":
SET !ERRORIGNORE YES

And as result, the macro can find in first record correct value, but in the second record it went to wrong field instead of writing in Extraction #EANF#.

So: how can i programaticly write:
search and go to label and extract it's dynamic data if you found label, but if there is no label (on error search) extract #EANF# (instead of wrong extraction)?
Thank you.

Posted: Thu Oct 13, 2005 8:23 pm
by Tech Support
The new version V5.0 handles this automatically, so your macro code works in V5.0 without further changes :)

Code: Select all

VERSION BUILD=5001014    
TAB T=1     
TAB CLOSEALLOTHERS     
'
URL GOTO=http://www.worldlakes.org/lakedetails.asp?lakeid=8509 
SIZE X=801 Y=603    
TAG POS=1 TYPE=TD ATTR=TXT:Lake<SP>Region*   
EXTRACT POS=R1 TYPE=TXT ATTR=<TD>*   
'=> lake details extracted
'
URL GOTO=http://www.worldlakes.org/lakedetails.asp?lakeid=10182   
SET !ERRORIGNORE YES
TAG POS=1 TYPE=TD ATTR=TXT:Lake<SP>Region*   
EXTRACT POS=R1 TYPE=TXT ATTR=<TD>*  
'=> EANF message because no lake details on this page 

Posted: Thu Oct 13, 2005 8:26 pm
by Tech Support
You can contact our support for the V5.0 Beta version