Article View: news.software.readers
Article #34900Re: Wish list for slrn.
From: ol... Olly Betts
Date: Mon, 07 Jul 1997 00:00
Date: Mon, 07 Jul 1997 00:00
30 lines
1724 bytes
1724 bytes
In article <slrn5s13q...@ljz.asfast.net>, Lloyd Zusman wrote:
>And I have a question: could you show how to use 'select_list_box' in
>a macro? I couldn't find any examples of this in the sample macros
>that come with the 0.9.4.2 release.
Look in slrn/doc/README.macros (in 0.9.4.1 at least):
: get_select_box_response
: Prototype: Integer get_select_box_response (title, item_1, ..., n_items);
:
: This function pops a selection box and queries the user for a
: response. An integer is returned which indicates the user's choice.
: For example:
:
: variable rsp = get_select_box_response (
: "Pick a number:",
: "one", "two", "three", "four",
: 4);
:
: message (Sprintf ("You chose %d", rsp, 1));
One caveat: the numbering actually seems to start from 0, so the above will
display a number one less than you probably expect.
Olly
--
Don't send a man to do a buoy's job.
Technical Details
Message-ID:
<slrn5s1is0.r5t.olly@noxious.muscat.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mailReferences:
<slrn5rbcin.lo.asfast@ljz.asfast.net> <slrn5rbkav.os7.davis@aluche.mit.edu> <slrn5rcqht.j1.asfast@ljz.asfast.net> <slrn5s001n.8ec.davis@mygir.davis.net> <slrn5s13q8.i5u.asfast@ljz.asfast.net>Show Full Headers
Complete Article Headers
Message-ID: <slrn5s1is0.r5t.olly@noxious.muscat.co.uk> Subject: Re: Wish list for slrn. Date: Mon, 07 Jul 1997 00:00:00 +0000 From: ol...@muscat.co.uk (Olly Betts) References: <slrn5rbcin.lo.asfast@ljz.asfast.net> <slrn5rbkav.os7.davis@aluche.mit.edu> <slrn5rcqht.j1.asfast@ljz.asfast.net> <slrn5s001n.8ec.davis@mygir.davis.net> <slrn5s13q8.i5u.asfast@ljz.asfast.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail X-Deja-AN: 255214210 Mail-Copies-To: always Organization: Muscat Ltd -- http://www.muscat.co.uk/ Newsgroups: news.software.readers,alt.lang.s-lang