title: Call Delphi method from another Delphi program
body: <p>I would like to setup a small program that retrieves info from a database and then distributes that information to another program when requested.  For instance, a program called 'Master' would retrieve data from the database and create a collection of objects (list, array, etc. whatever works best) and then a program called 'Slave' (running from multiple desktops) could call a method (i.e., GetNextRecord) from 'Master' to retrieve the next record in the collection.</p>
  
  <p>I would like to be able to only allow one 'Slave' to be able to call the GetNextRecord method at a time to avoid giving multiple slaves the same record.  'Master' would run on the server with the database while 'Slave' would be running on multiple desktop machines.</p>
  
  <p>Does anyone have an example of this or a tutorial on how this is done?</p>
  
  <p>TIA,
  Brian Enderle</p>