Monday, October 4, 2010

create list info

    #include "Ifx.h"
   prototype list_info();
function list_info()
   STRING  szTitle, szMsg, svReturn, szInfo;
   NUMBER  nvReturn;
   LIST    listInfo;
begin
   // Create a list to hold system information.
   listInfo = ListCreate (STRINGLIST);

   // Add the time to the list.
   ListAddString (listInfo, szInfo, AFTER);
  
    szInfo="apple";
   ListAddString (listInfo, szInfo, AFTER); 
   szInfo="orange";
    szInfo="pen";
     szInfo="software";
        ListAddString (listInfo, szInfo, AFTER);
          szInfo="pen";
              ListAddString (listInfo, szInfo, AFTER);
     szInfo="paper";
          ListAddString (listInfo, szInfo, AFTER);
      szInfo="keyboard"; 
          ListAddString (listInfo, szInfo, AFTER);
       szInfo="adapter";
            ListAddString (listInfo, szInfo, AFTER);
        szInfo="webpage";
   // Disable the Back button in setup dialogs.
   Disable (BACKBUTTON);
  
   szTitle  = "InfoList";
   szMsg    = "general information";

   // Display the information.
   SdShowInfoList (szTitle, szMsg, listInfo);
end;



 
   // Check if the system has a CD-ROM drive.
  // GetSystemInfo (CDROM, nvReturn, svReturn);
  // if (nvReturn = TRUE) then
      //szInfo = "Your machine has a CD-ROM Drive.";
  // else
     // szInfo = "Your machine does not have a CD-ROM drive.";
  // endif;
   // Add the CD-ROM info to the list.
 //  ListAddString (listInfo, szInfo, AFTER);
   // Check the time on the system.
  // GetSystemInfo (TIME, nvReturn, svReturn);
 //  Sprintf (szInfo, "The time now is %s.", svReturn);

No comments:

Post a Comment