T O P I C R E V I E W |
tommy152 |
Posted - 20 Feb 2011 : 21:42:25 Trying to modify the distributor block in the IAFD script since sometimes they display Distributor and sometimes Studio (Distributor).
So far I have
#DISTRIBUTOR# #STARTREADWEB# #FINDLINE#=<dt>Distributor</dt>#01##ONERROR#=*ASK* #IF# #00#<>#01# #FINDLINE#=<dd>#01# #ONERROR#=*STOP* #FIND#=.htm">#02# #ONERROR#=*STOP* #COMPUTECURSOR#=+5 #PUTCURSOR#=#01# #FIND#=</a>#02# #ONERROR#=*STOP* #TAKEWORD#=#03#,#01#,#02# #TAKEDISTRIBUTOR#=#03# #TAKESTUDIO#=#03# #GOTO#=ENDDISTRIBUTOR #ENDIF#
#FINDLINEPREVIOUS#=<dt>Studio (Distributor)</dt>#01##ONERROR#=*ASK* #FINDLINE#=<dd>#01# #ONERROR#=*STOP* #FIND#=.htm">#02# #ONERROR#=*STOP* #COMPUTECURSOR#=+5 #PUTCURSOR#=#01# #FIND#=</a>#02# #ONERROR#=*STOP* #TAKEWORD#=#03#,#01#,#02# #TAKEDISTRIBUTOR#=#03# #TAKESTUDIO#=#03# :ENDDISTRIBUTOR #ENDDISTRIBUTOR#
The first FINDLINE errors out when it can't find Distributor on the page saying it "Can't find the word on #FINDLINE# instruction <dt>Distributor</dt>Line: 386. If it couldn't find it, wouldn't it just write 0 to the variable? |
1 L A T E S T R E P L I E S (Newest First) |
tommy152 |
Posted - 20 Feb 2011 : 21:53:30 Nevermind...changed the ONERROR to GO and it works. Looks like it throws the error even though it does set the variable. |
|
|