home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_01_06 / 1n06024b < prev    next >
Text File  |  1990-09-23  |  689b  |  20 lines

  1.  
  2.      % parse section of source text
  3.     parse_input_section_into(KeyWord,TopicText,Buttons),
  4.  
  5.      % bind the variable Topic to the compound topic object
  6.      Topic = topic(KeyWord, TopicText, Buttons),
  7.      
  8.      % save it in the database
  9.        % db is a database selector, "topics" is the name of a 
  10.          % chain (ordered set) of objects under which we store Topic
  11.      % DB_Reference is returned as the database Id assigned to the topic
  12.     chain_insertz(db, "topics", topic_type, Topic, Db_Reference),
  13.  
  14.      % Btree_Selector denotes a particular btree in the database
  15.      %  the btree associates Keyword with the database Id
  16.     key_insert(db, Btree_Selector, Keyword, Db_Reference),
  17.  
  18.   ...
  19.  
  20.