Code: Select all
type playmate
fname as string
lname as string
month as string
year as integer
end type
dim shared girls(3) as playmate
girls(1).fname="Lisa"
girls(1).lname="Matthews"
girls(1).month="April"
girls(1).year=1990
girls(2).fname="Kara"
girls(2).lname="Monaco"
girls(2).month="June"
girls(2).year=2005
girls(3).fname="Karen"
girls(3).lname="McDougal"
girls(3).month="December"
girls(3).year=1998
open "playmate.txt" for output as #1
for i=1 to 3
write #1,girls(i) ' *** Part of the program that doesn't work. ***
next i
close #1