Date: Mon, 05 Aug 2002 11:14 p.m. From: Mark Jacobson To: 810-088-06@uni.edu Subject: Hints on the movie nested list control break... Here are some hints that will perhaps help you for the control break processing, i.e. the change in movie name from Big to Casablanca or from Wizard of Oz to Young Frankenstein. All you have to do is look at the HTML, to see what all needs to be done when there is a CONTROL BREAK, i.e. a change in movie name from the $lastMovie. For your convenience, I have copied and pasted a few lines of HTML which you can see and probably already have been looking at with View menu Source from the http://student.cns.uni.edu/~venkman/moviesAtoZ.html URL linked to from http://www.cns.uni.edu/~jacobson/088/lastAssign2002.html Please also take advantage of class37.html, the Thursday summary! --------------------------------------------------------------------- Control break processing - when $movieName ne $lastMovie is TRUE --------------------------------------------------------------------- For the first movie, there is no previous movie. That is the purpose of the statement: $lastMovie = " This will NEVER be the name of a movie, will it! :-) "; in the sub makeNestedOLtags at class37.html page. -------------------- Adventures of Baron Munchausen will be $movieName and if ($movieName ne $lastMovie) will be TRUE... 0. NOTHING to do, null string is all that is needed, as there is no needed for quotes, and no needed for previous actor, actress, category list closing. 1.
  • Adventures of Baron Munchausen 2.

    The other case, when we reach the 2nd movie group in the file, or the 3rd or 4th or 34th movie group of quotes, will be as follows: (see way below here for Big and Casablanca HTML) --- ---------- When there is a change in the name of the movie, from the previous movie we have been working on, it is just like a control break from your COBOL class (control break processing). 0.

    1.

  • Casablanca 2. . Of course, there is no previous i. ii. iii. iv. list or UL bullets to close if this is the VERY FIRST MOVIE. 1. You need to print the
  • for the current new movie name, the
  • Casablanca would be printed. 2. You need to print the
      that starts a new list, when we have read Casablanca as the first record after Big. 3. You need to print the Humprey Bogart, but not the null string field because there was no actress in database, and then print the category Drama. print $record[2] through $record[4] 4. You need to then print the
        tag that starts the nested list for the quotes, all of the quotes for the film. There is at least one quote, this record from the database, but probably several more, as they are encountered in sorted order. All of the above action must take place inside of your if statement. When you are printing the 2nd or 3rd or 4th quote from a movie, all of the above action is avoided. When you print the 1st quote from a movie, the above action happens, then AFTER the above action, the printing of the quote happens.
      1. Big
        • Tom Hanks
        • Elizabeth Perkins
        • Comedy
          1. "I'm your best friend. What's more important than that, huh?"
          2. Susan: I want to spend the night with you. Josh: You mean like sleep over? 0.

        1.

      2. Casablanca 2.
          3.
        • Humprey Bogart
        • Drama 4.
          1. We'll always have Paris.

        Good luck, 088 students... Please send me the URL by Wednesday morning or before. Mark