Article View: news.software.readers
Article #34924Re: Generating vararg slrn intrinsic at run time ... ???
From: lah... Jan Hlavacek
Date: Mon, 07 Jul 1997 00:00
Date: Mon, 07 Jul 1997 00:00
48 lines
2180 bytes
2180 bytes
On 7 Jul 1997 12:43:45 GMT, Lloyd Zusman <asf...@asfast.com> wrote:
>I'm trying to do a somewhat tricky thing in an slrn macro. This
>requires making use of some of the intricacies of s-lang, but even
>though I've read the slrn docs as well as the s-lang docs, I still
>haven't been able to figure out how to do what I want to do.
>
>The idea is this: in my macro, I have a string that consists of a
>comma-separated list of values, such as this ...
>
> "value1,value2, ... ,valueN"
>
>The number of comma-separated components in this string is arbitrary,
>and this is only known at run time.
>
>What I'd like to do is to split this string into its components and then
>generate the following call ...
>
> rsp = get_select_box_response ("Choose one:",
> "value1", "value2", ... , "valueN",
> N);
>
>I know that I can use the s-lang 'strchop' intrinsic to split the
>string and push the components and the number of components onto the
>stack. What I don't know how to do is to assemble the call to
>'get_select_box_response' from these items on the stack.
Did you try simply calling
get_select_box_response ("Choose one:", strchop (my_string)); ?
If this doesn't work, perhaps
"Choose one:";
strchop (my_string);
get_select_box_response ();
would do.
lahvak
--
Jan Hlav\'{a}\v{c}ek
lah...@math.ohio-state.edu (Blind Carbon Copies will bounce)
www: http://www.math.ohio-state.edu/~lahvak/ is back!
Technical Details
Message-ID:
<slrn5s21ng.4pi.lahvak+n@math.mps.ohio-state.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mailReferences:
<slrn5s1ost.u4u.asfast@ljz.asfast.net>Show Full Headers
Complete Article Headers
Message-ID: <slrn5s21ng.4pi.lahvak+n@math.mps.ohio-state.edu> Subject: Re: Generating vararg slrn intrinsic at run time ... ??? Date: Mon, 07 Jul 1997 00:00:00 +0000 From: lah...@math.ohio-state.edu (Jan Hlavacek) References: <slrn5s1ost.u4u.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: 255260692 Organization: Department of Mathematics, The Ohio State University Reply-To: lah...@math.ohio-state.edu Newsgroups: news.software.readers,alt.lang.s-lang