home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invenzioni E Inventori 1: Lavoro E Vita Quotidiana
/
invenzioni-inventori-1.iso
/
mac
/
Invenzio
/
Indart.cst
/
00051_Script_51
< prev
next >
Wrap
Text File
|
1997-10-14
|
2KB
|
53 lines
on popart_repub num
set tot to the number of lines in field "cod_art"
repeat with p = 1 to tot
set par to item 1 of line p of field "cod_art"
if char 1 of par = "p" then
set par to "M" & char 1 to 4 of par
else
set par to "MI" & char 1 to 3 of par
end if
if trova_cd (par,num) = 1 or par contains "MP" then
set par to item 1 of line p of field "cod_art"
set par2 to par&".idx"
put par
set max to the number of lines in field par2
repeat with a = 1 to max
set pr to item 1 of line a of field par2
set ofs to offset ("\",pr)
set amb to char 1 to ofs-1 of pr
if amb <> "tori" then
set cod to char ofs+1 to ofs+5 of pr
if trova_cd (cod,num)= 0 then
delete line a of field par2
delete line a of field par
set a = a - 1
set max = max -1
end if
end if
end repeat
else
set par to item 1 of line p of field "cod_art"
set par2 to par&".idx"
erase member par
erase member par2
end if
end repeat
end
on controlla
global numero_parola_elim
set chi to 700
repeat with car = 1 to length (the text of field chi)
set appo to char 1 to car of field 700
set num_parola to the number of words in appo
if the textstyle of char car of field 700 contains "bold" then
collega_contr car, num_parola
set appo to word 1 to numero_parola_elim of field 700
set car to (the number of chars in appo)
end if
end repeat
end