Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8775 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2012-02-28 05:48 +0000 |
| Last post | 2012-02-28 05:48 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Function Evaluation Bob Hanlon <hanlonr357@gmail.com> - 2012-02-28 05:48 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2012-02-28 05:48 +0000 |
| Subject | Re: Function Evaluation |
| Message-ID | <jihprp$91c$1@smc.vnet.net> |
InputField can handle its input as a string.
s = ""; InputField[Dynamic[s], String,
FieldHint -> "Enter series of integers"]
This will handle comma- or space-separated input or a mix of the two,
with or without List brackets:
response = "{" <>
StringReplace[
StringReplace[s, "," -> " "],
Whitespace -> ","] <> "}" //
ToExpression // Flatten
Bob Hanlon
On Sun, Feb 26, 2012 at 4:19 AM, Don <donabc@comcast.net> wrote:
> I would like to use Input[] to prompt the user
> to input a series of separate integers, separated by spaces.
>
> The Input function wants to multiply the series of integers immediately. I am trying to capture the series of integers as a list of separate integers.
> How can I do this?
>
> SetAttributes[Input, HoldAll] does not work.
>
> Thank you.
>
> Don
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web