PDA

View Full Version : Problem with user input with spaces


boesiii
2006-02-28, 05:57 PM
I have a routine the asks the user for size and type of pipe (ex: 8" PVC), but when the user hits the space acad thinks its a return.

Is there a way around this?

Thanks

.T.
2006-02-28, 06:05 PM
Hi Boesiii,


If you are using getstring, use (getstring T "\nPrompt goes here: ")

Hope this helps,

Tim Creary

kennet.sjoberg
2006-02-28, 06:11 PM
Space is Enter, but it depends on the input to the routine
if you use getstring for the input you can use this to accept space as space
(setq Ask (getstring T "Type size : "))

: ) Happy Computing !

kennet

rkmcswain
2006-02-28, 06:53 PM
...and just so you know, it's documented in the developer guide (acad_dev.chm) under (getstring)

If you are using VLIDE, double click on (getstring), which highlights it. Then click the help button on the toolbar. This will open HELP to the (getstring) page.

boesiii
2006-02-28, 06:57 PM
Thanks that worked