Filter using an initialization array

BlackWidow scans websites (it's a site ripper). It can download an entire website, or download portions of a site.
Post Reply
mguluck
Posts: 1
Joined: Sun Oct 14, 2012 2:49 pm

Filter using an initialization array

Post by mguluck » Sun Oct 14, 2012 2:58 pm

I don't understand why this filter doesn't work. It has to do the initialization of the model array. I don't know what's the correct syntax

MG
----------------------------------------------------------------------------------------------------------------------------------------------------
case ScannerEvent of

Starting:

begin

dim model(40) as string;

model(1)=‘ally’;
model(2)=‘angellsummers’;
model(3)=‘yulia’;
model(4)=‘jordannekali’;
model(5)=‘melissalauren’;
model(6)=‘milkamanson’;
model(7)=‘rachel’;
model(8)=‘kimserena’;
model(9)=‘lizadelsierra’;
model(10)=‘eliskacross’;
model(11)=‘bijou’;
model(12)=‘carole’;
model(13)=‘eufrat’;
model(14)=‘maria’;
model(15)=‘zafira’;
model(16)=‘nella’;
model(17)=‘marketa’;
model(18)=‘zoelfox’;
model(19)=‘sallym’;
model(20)=‘beliciasuzy’;
model(21)=‘graziella’;
model(22)=‘dariavladina’;
model(23)=‘fleur’;
model(24)=‘asianschan’;
model(25)=‘candiceangel’;
model(26)=‘janet’;
model(27)=‘bettymoon’;
model(28)=‘mahe’;
model(29)=‘leafast’;
model(30)=‘jessie’;
model(31)=‘annabelleb’;
model(32)=‘sonja’;
model(33)=‘judyminx’;
model(34)=‘shanis’;
model(35)=‘shannyatweeks’;
model(36)=‘astree’;
model(37)=‘carla’;
model(38)=‘cheliane’;
model(39)=‘emmaguns’;
model(40)=‘ceciliavega’;




for i =1 to 40 do
aLink = ‘http://www.explicite-art.com/images/mod ... it-big.jpg’;
Scanlink(aLink); // add the link to the scan queue.

for j=1 to 3 do
aLink =‘http://www.explicite-art.com/images/mod ... +’-big.jpg’;
Scanlink(aLink); // add the link to the scan queue.
end;
end;

BeforeAdding:
begin
AcceptEvent = (DocumentType ~= 'image/'); // add any kind of images.
end;

else
AcceptEvent = No;
end

User avatar
Support
Site Admin
Posts: 1830
Joined: Sun Oct 02, 2011 10:49 am

Re: Filter using an initialization array

Post by Support » Sun Oct 14, 2012 3:27 pm

Arrays works diffently, here's how to do it...

Code: Select all

models = 'ally,angellsummers,yulia,jordannekali';

for each field(',') in models as aModel do begin

	aLink = 'http://www.explicite-art.com/images/model-portrait/'+aModel+'/main-portrait-big.jpg';

	Scanlink(aLink); // add the link to the scan queue.

end;
Also, make sure yo use the single quote ' or the double quote " if you have syntax errors in the strings.
Your support team.
http://SoftByteLabs.com

Post Reply