home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Undercover - Rock on Multimedia 2
/
UNDERCOVER2.BIN
/
main.dir
/
00516_Script_516
< prev
next >
Wrap
Text File
|
1996-01-27
|
9KB
|
251 lines
on updateLists
cursor 4
global selectionChanged
if selectionChanged then
set selectionChanged = false
global gStyle, gGenre, gEra, gPlace
delete field "artist_list"
delete field "title_list"
global gArtists, gTitles, gRecNums
set gArtists = ""
set gTitles = ""
set gRecNums = ""
put DBCount() into nrecs
set full_list_required = false
if nrecs > 0 then
if gstyle = "NONE" then
if ggenre = "NONE" then
if gera = "NONE" then
if gplace = "NONE" then
set full_list_required = true
-- set i = 1
-- repeat while i <= nrecs
-- dbGo(i)
-- addNextRec
-- set i = i + 1
-- end repeat
else
global gPlaceIndex
DBSelectIndex (gPlaceIndex)
dbSeek (gplace)
repeat while DBGetFieldByName ("PLACE") = gplace
addNextRec
put dbskip(1) into dbResult
if dbResult < 0 then
exit repeat
end if
end repeat
end if
else
if gplace = "NONE" then
global gEraIndex
DBSelectIndex (gEraIndex)
dbSeek (gera)
repeat while DBGetFieldByName ("ERA") = gera
addNextRec
put dbskip(1) into dbResult
if dbResult < 0 then
exit repeat
end if
end repeat
else
global gEraIndex
DBSelectIndex (gEraIndex)
dbSeek (gera)
repeat while DBGetFieldByName ("ERA") = gera
if DBGetFieldByName ("PLACE") = gplace then addNextRec
put dbskip(1) into dbResult
if dbResult < 0 then
exit repeat
end if
end repeat
end if
end if
else --ggenre <> NONE
if gera = "NONE" then
if gplace = "NONE" then
global gGenreIndex
DBSelectIndex (gGenreIndex)
dbSeek (ggenre)
repeat while DBGetFieldByName ("GENRE") = ggenre
addNextRec
put dbskip(1) into dbResult
if dbResult < 0 then
exit repeat
end if
end repeat
else
global gGenreIndex
DBSelectIndex (gGenreIndex)
dbSeek (ggenre)
repeat while DBGetFieldByName ("GENRE") = ggenre
if DBGetFieldByName ("PLACE") = gplace then addNextRec
put dbskip(1) into dbResult
if dbResult < 0 then
exit repeat
end if
end repeat
end if
else
if gplace = "NONE" then
global gGenreIndex
DBSelectIndex (gGenreIndex)
dbSeek (ggenre)
repeat while DBGetFieldByName ("GENRE") = ggenre
if DBGetFieldByName ("ERA") = gera then addNextRec
put dbskip(1) into dbResult
if dbResult < 0 then
exit repeat
end if
end repeat
else
global gGenreIndex
DBSelectIndex (gGenreIndex)
dbSeek (ggenre)
repeat while DBGetFieldByName ("GENRE") = ggenre
if DBGetFieldByName ("ERA") = gera and DBGetFieldByName ("PLACE") = gplace then addNextRec
put dbskip(1) into dbResult
if dbResult < 0 then
exit repeat
end if
end repeat
end if
end if
end if
else --gstyle <> NONE
if ggenre = "NONE" then
if gera = "NONE" then
if gplace = "NONE" then
global gStyleIndex
DBSelectIndex (gStyleIndex)
put dbSeek (gstyle), dbcurrrecnum(), DBGetFieldByName ("STYLE")
repeat while DBGetFieldByName ("STYLE") = gstyle
addNextRec
put dbskip(1) into dbResult
if dbResult < 0 then
exit repeat
end if
put dbresult, dbcurrrecnum(), DBGetFieldByName ("STYLE")
end repeat
else
global gStyleIndex
DBSelectIndex (gStyleIndex)
dbSeek (gstyle)
repeat while DBGetFieldByName ("STYLE") = gstyle
if DBGetFieldByName ("PLACE") = gplace then addNextRec
put dbskip(1) into dbResult
if dbResult < 0 then
exit repeat
end if
end repeat
end if
else
if gplace = "NONE" then
global gStyleIndex
DBSelectIndex (gStyleIndex)
dbSeek (gstyle)
repeat while DBGetFieldByName ("STYLE") = gstyle
if DBGetFieldByName ("ERA") = gera then addNextRec
put dbskip(1) into dbResult
if dbResult < 0 then
exit repeat
end if
end repeat
else
global gStyleIndex
DBSelectIndex (gStyleIndex)
dbSeek (gstyle)
repeat while DBGetFieldByName ("STYLE") = gstyle
if DBGetFieldByName ("ERA") = gera and DBGetFieldByName ("PLACE") = gplace then addNextRec
put dbskip(1) into dbResult
if dbResult < 0 then
exit repeat
end if
end repeat
end if
end if
else --ggenre <> NONE
if gera = "NONE" then
if gplace = "NONE" then
global gStyleIndex
DBSelectIndex (gStyleIndex)
dbSeek (gstyle)
repeat while DBGetFieldByName ("STYLE") = gstyle
if DBGetFieldByName ("GENRE") = ggenre then addNextRec
put dbskip(1) into dbResult
if dbResult < 0 then
exit repeat
end if
end repeat
else
global gStyleIndex
DBSelectIndex (gStyleIndex)
dbSeek (gstyle)
repeat while DBGetFieldByName ("STYLE") = gstyle
if DBGetFieldByName ("GENRE") = ggenre and DBGetFieldByName ("PLACE") = gplace then addNextRec
put dbskip(1) into dbResult
if dbResult < 0 then
exit repeat
end if
end repeat
end if
else
if gplace = "NONE" then
global gStyleIndex
DBSelectIndex (gStyleIndex)
dbSeek (gstyle)
repeat while DBGetFieldByName ("STYLE") = gstyle
if DBGetFieldByName ("GENRE") = ggenre and DBGetFieldByName ("ERA") = gera then addNextRec
put dbskip(1) into dbResult
if dbResult < 0 then
exit repeat
end if
end repeat
else
global gStyleIndex
DBSelectIndex (gStyleIndex)
dbSeek (gstyle)
repeat while DBGetFieldByName ("STYLE") = gstyle
if DBGetFieldByName ("GENRE") = ggenre and DBGetFieldByName ("ERA") = gera and DBGetFieldByName ("PLACE") = gplace then addNextRec
put dbskip(1) into dbResult
if dbResult < 0 then
exit repeat
end if
end repeat
end if
end if
end if
end if
end if --nrecs > 0
if full_list_required then
put