There is no error now but there is still no filter of the members.
~~~~~~~~~~~~~~~~~~~~~
global gDatabase -- List with all the database records
global gCurrentRecord -- The index of the current record
-- Initialise of sprite properties
on startmovie
myFile = new(xtra "fileio"

-- Create an instance of FileIO
openFile(myFile,the moviePath&"Cssp_Database5.TXT",1) --Open the file with read access
text = readFile(myFile) --set the variable 'myVariable' to the text of the file 'info.txt'
gdatabase = value(text)
listB = [value(text)]
exists= 0
-- html header
htext = "<HTML><BODY BGCOLOR=#FFFFFF>"&RETURN
-- put the table headings
put "<TABLE align=left border=2 cellspacing=2 cellpadding=2><TR><TH align=center width=200>SMC/GRC</th></TR>"¬
&RETURN after htext
repeat with i = 1 to gDatabase.count
put "<TR>" after htext
put "<TD align= left width=200>"&gDatabase
.smc&"</TD>" after htext
if listB.count > 0 then
exists = 0
repeat with j = 1 to listB.count
if gDatabase.smc = listB[j] then exists = 1
end repeat
end if
if exists = 0 then listB.append(gDatabase.smc)
end repeat
put "</TR>"&RETURN after htext
-- close out table and HTML
put "</TABLE></BODY></HTML>" after htext
-- the member for the list to appear in. For this, it is in a field not the ddl yet.
member("Database List"
.html = htext
end
~~~~~~~~~~~~~~~`