(or *myString* (setq *myString* "Pile-01"))
(setq *myString* (getstring t (strcat "Name of pile < " *myString* " > :")))
Tharwat helped me here (http://www.cadtutor.net/forum/showthread.php?97019-Add-quot-\P-quot-infront-of-each-item-of-a-list).
The whole idea was to construct a list of strings, however his suggestion concatenates the inputed text into one big string.
But in that thread I was reffering about creating an MTEXT entity, IDK whats your intention here.
the function getstring with t allows you to write a text with space then I want to end the input by pressing Space bar as if I am pressing Enter.So, which key do you press to write a space in the string... :idiot2:
the function getstring with t allows you to write a text with space then I want to end the input by pressing Space bar as if I am pressing Enter.So, which key do you press to write a space in the string... :idiot2:
(strcat " " (getstring "\nEnter your string like you've typed space firstly : "))
(setq str (getstring t (strcat "Name of pile :")))
Thank you ronjonp so much for your great help.Change the "\n" to "\r".
I knew that it has something to do with grread but it is above my head. :yes:
Your function seems to work but I couldn't test it correctly because it continues printing the message to command line without a pause.
Can you please rectify it?
Code - Auto/Visual Lisp: [Select]
(cond ) ) ) ) ) ) ) ) str )
Change the "\n" to "\r".
You're welcome :)Change the "\n" to "\r".
Wow that was simple. and great work ronjonp.
Thank you so much.
(princ (chr 8))
to (princ "\010 \010")
Nice variation :)Thanks, Ron! :)