Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Driving HTML Outline Output
Message
De
24/07/2005 20:50:05
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Data Driving HTML Outline Output
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01035579
Message ID:
01035579
Vues:
58
I would like to use a VFP table and data drive HTML output that creates an outline style output. That is I want to use the
    or ordered list and
  1. HTML tags to display the results.

    Here is some sample HTML code to examine:
     <ol>
      <li>Top Level 
       <ol>
        <li>Sub-Level
         <ol>
          <li>Sub-Level Item 1</li>
          <li>Sub-Level Item 2</li>
          <li>Sub-Level Item 3
           <ol>
            <li>Sub-Sub-Level Output</li>
           </ol>
          </li>
         </ol>
        </li>
    As you can see, an order list can go several layers deep. It gets tricky to write a program that can generate this output since Sub-Level Item 3, Sub-Level and Top Level areas do not close their respective tags until after the subordinate tags are complete. However, other tags such as Sub-Level Item 1 and 2 close their tags immediately.

    Anyone done something like this before? How would you set up the table properly to handle the variable ident level tags? Does something like a parentFK column that points back to its parent PK sound right?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform