# Asking user input?

**URL:** <https://calculix.discourse.group/t/asking-user-input/1019>\
**Category:** Uncategorized\
**Created:** [March 4, 2022, 9:45pm UTC](https://calculix.discourse.group/t/asking-user-input/1019 "2022-03-04T21:45:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fverbaas](https://avatars.discourse-cdn.com/v4/letter/f/53a042/32.png) [@fverbaas](https://calculix.discourse.group/u/fverbaas)\
**Post date:** [March 4, 2022, 9:45pm UTC](https://calculix.discourse.group/t/asking-user-input/1019/1 "2022-03-04T21:45:43Z")

</div>

For my little window calculation tool project I want to let the user punch in some key values, such as height and width of the window.  
I have two problems here:

1. the use of a question mark operator in the valu command, as suggested in section 9.137 of the cgx manual does not seem to work. If I write in my .fbd file:

```auto
 VALU som 750
 VALU weetniet ?
 VALU laatst 23

```

the execution is not halted to let me type the value of _weetniet_, but, contrary to what the manual suggests, the script is completed and _weetniet_ stores a question mark.

1. I have not found a way to simply echo a text to the screen. Woud be convenient to let the user know what to do. Preferably a sort of complete function with a prompt text etc.

---

<div class="post-metadata">

**Author:** ![Calc\_em](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Calc\_em](https://calculix.discourse.group/u/Calc_em)\
**Post date:** [March 4, 2022, 10:22pm UTC](https://calculix.discourse.group/t/asking-user-input/1019/2 "2022-03-04T22:22:54Z")

</div>

Have you tried adding user message between apostrophes, like in the documentation?

 ![user input](https://global.discourse-cdn.com/free1/uploads/calculix/original/1X/8da2a343f480f77751743eb2b4a213bbe35ac401.png)

---

<div class="post-metadata">

**Author:** ![fverbaas](https://avatars.discourse-cdn.com/v4/letter/f/53a042/32.png) [@fverbaas](https://calculix.discourse.group/u/fverbaas)\
**Post date:** [March 5, 2022, 11:02am UTC](https://calculix.discourse.group/t/asking-user-input/1019/3 "2022-03-05T11:02:09Z")

</div>

Hmm. I cannot understand how I missed that. Could it be this ‘user message’ is something that is missing in some manual versions?

Tried that solution but no avail. I take it the double quotes used are just double quotes and not something special, right?

---

<div class="post-metadata">

**Author:** ![Calc\_em](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Calc\_em](https://calculix.discourse.group/u/Calc_em)\
**Post date:** [March 5, 2022, 11:44am UTC](https://calculix.discourse.group/t/asking-user-input/1019/4 "2022-03-05T11:44:12Z")

</div>

> [@fverbaas](#):
>
> Could it be this ‘user message’ is something that is missing in some manual versions?

I checked the older versions of the cgx manual and this operator was mentioned for the first time in the manual for the 2.13 release.

By the way, which CalculiX version do you use ?

> [@fverbaas](#):
>
> I take it the double quotes used are just double quotes and not something special, right?

Right, according to the documentation those should be just regular apostrophes.

---

<div class="post-metadata">

**Author:** ![fverbaas](https://avatars.discourse-cdn.com/v4/letter/f/53a042/32.png) [@fverbaas](https://calculix.discourse.group/u/fverbaas)\
**Post date:** [March 5, 2022, 12:16pm UTC](https://calculix.discourse.group/t/asking-user-input/1019/5 "2022-03-05T12:16:06Z")

</div>

Thanks for confirming regular apostrophes.

I guess I found the culprit. I will have to update. My CalculiX version is 2.10 build 002, 64 bit from the bConverged package.  
I have now downloaded the extra files to update to 2.19. Will see if that works better.

---

<div class="post-metadata">

**Author:** ![fverbaas](https://avatars.discourse-cdn.com/v4/letter/f/53a042/32.png) [@fverbaas](https://calculix.discourse.group/u/fverbaas)\
**Post date:** [March 6, 2022, 7:46pm UTC](https://calculix.discourse.group/t/asking-user-input/1019/6 "2022-03-06T19:46:09Z")

</div>

The version upgrade to 2.19 did it. All clear now.
