baseportal
Start

baseportal message board

Welcome to the baseportal message board...

Please read the FAQ.

 
 Selected message: To the list 
    Message from Claus on 10/18 2007, 12:28 +01:00

    Re: Sorting using - get...while (get_next...) { out <<EOF;...


      <perl>
      get "Year~=2007 sort=Last_name", "Hours";
      while (get_next "Hours")
      {
      out <<EOF;
      <table>
      <tr>
      <td>$Last_name</td>
      <td>$First_name</td>
      </tr>
      </table>

      hth

      Claus
      EOF

      }
      </perl>

    Your reply:

    Name: EMail: WWW:
    Subject:
    Text:
    Timezone:

    Post a new message


 All messages from this thread: To the list 
    Message from User on 10/17 2007, 22:21 +00:00

    Sorting using - get...while (get_next...) { out <<EOF;...


      Can someone show me what to add to the following code to sort by Last_name field?

      <perl>
      get "Year~=2007", "Hours";
      while (get_next "Hours")
      {
      out <<EOF;
      <table>
      <tr>
      <td>$Last_name</td>
      <td>$First_name</td>
      </tr>
      </table>
      EOF

      }
      </perl>

      Thanks!

     Post a reply

    Message from Claus on 10/18 2007, 12:28 +01:00

    Re: Sorting using - get...while (get_next...) { out <<EOF;...


      <perl>
      get "Year~=2007 sort=Last_name", "Hours";
      while (get_next "Hours")
      {
      out <<EOF;
      <table>
      <tr>
      <td>$Last_name</td>
      <td>$First_name</td>
      </tr>
      </table>

      hth

      Claus
      EOF

      }
      </perl>

     Post a reply


    Message from User on 10/18 2007, 15:55 +00:00

    Re: Sorting using - get...while (get_next...) { out <<EOF;...


      Thank you, Claus!
     Post a reply

 Messages from 300 to 450: To the input form 
<< Newest messages | < Newer messages | To the input form | Older messages > | Oldest messages >>


Back to the homepage

© baseportal.com. All rights reserved. Terms of use



powered in 0.16s by baseportal.com
Get your own Web Database - for FREE!