Jump to content

How can I make a question in a text block?


danyra
 Share

Recommended Posts

I have this block of text as you can see in the image below, and in the window show me  this "VIGA V-SS01 (.25X .50)", BUT I DONT WANT THAT SHOW ME THIS.

 

I want to the program ask me a question first, for example: What is the name?

so I will set the answer of this question in the block I have.

 

SO, I want to have this in the window "VIGA V- (AND THE ANSWER OF THE QUESTION)"

 

EXAMPLE:

Computer: What is the name?

User write: L22

 

Then, that will show me:

"VIGA V- L22"

 

I will glad if you can help me, If you have already notice, I dont know to much about the topic. 

 

Sin título.png

Link to comment
Share on other sites

 

 

5 hours ago, danyra said:

 

SO, I want to have this in the window "VIGA V- (AND THE ANSWER OF THE QUESTION)"

(setq str (getstring t "\nWhat is the name? VIGA V- ") )

;change this 
'(1 . "%%UVIGA V-SS01 (.25X .50)")
;to
(cons 1 (strcat "VIGA V- " str))


 

  • Thanks 1
Link to comment
Share on other sites

add this line before this block of text

(setq str (getstring "\Type string"))

Then replace 7th line with  

image.png.b620b4f81095bf32b0c82ab842bc521a.png

Quote

'(1 . "%%Uviga v-ss01 (.25x.50)")

 

with 

(cons 1 (strcat "VIGA V- " str ))

 

 

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...