Article View: news.software.readers
Article #34922Generating vararg slrn intrinsic at run time ... ???
From: asf... Lloyd Zusman
Date: Mon, 07 Jul 1997 00:00
Date: Mon, 07 Jul 1997 00:00
36 lines
1674 bytes
1674 bytes
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.
Any ideas?
Thanks in advance.
--
Lloyd Zusman
l...@asfast.com
Technical Details
Message-ID:
<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-mailShow Full Headers
Complete Article Headers
Message-ID: <slrn5s1ost.u4u.asfast@ljz.asfast.net> Subject: Generating vararg slrn intrinsic at run time ... ??? Date: Mon, 07 Jul 1997 00:00:00 +0000 From: asf...@asfast.com (Lloyd Zusman) 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: 255232820 Organization: As Fast Reply-To: l...@asfast.com (Lloyd Zusman) Newsgroups: news.software.readers,alt.lang.s-lang