Newsgroups: rec.arts.int-fiction
Path: nntp.gmd.de!stern.fokus.gmd.de!zib-berlin.de!uni-paderborn.de!golden-gate.owl.de!fu-berlin.de!news.belwue.de!news.dfn.de!Germany.EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!usenet.ucs.indiana.edu!news.cs.indiana.edu!shulick@mango.ucs.indiana.edu
From: "Sam Hulick" <shulick@mango.ucs.indiana.edu>
Subject: Inform: Appending strings
Message-ID: <1995Sep28.113402.16372@news.cs.indiana.edu>
Organization: Vallen Software
Date: Thu, 28 Sep 1995 11:33:56 -0500
Lines: 32


How does one append a string to a string?  i.e.:

Global foo;

[ SomeRoutine;
   foo = "howdy";
   foo = foo + ", pardner";
];

I know that's wrong, but how is it done?  Basically, I want to make a
menu within my game that will add new hints on the menu as the player
discovers new puzzles.  So..

  DoMenu(hintmenu, #r$HintMenu, #r$HintInfo);

And whenever a new puzzle is discovered, it may call this routine:

[ NewHint hnt;
   hintmenu = hintmenu + hnt;  ! or however you append..
];

   NewHint("     How do I destroy the android?^");

Thanks much.. I looked through the manual but it did not mention
appending strings.

-- 
--- Sam Hulick ------------- shulick@indiana.edu ---------------------
Systems Consultant        | Homepage:
Indiana College Placement |    http://copper.ucs.indiana.edu/~shulick/
  and Assessment Center   | PGP public key available on request
