Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

lisp

2 views
Skip to first unread message

Thomas L Howard

unread,
May 21, 1999, 3:00:00 AM5/21/99
to
I am trying to make a program for AutoCAD in school. I am running into
trouble. I am trying to find the command that will ask me to type text in
(like my name) then after I do that it will display it on the screen can
anybody help me?

Nir Sullam

unread,
May 22, 1999, 3:00:00 AM5/22/99
to
(setq myname (getstring "\nType your name: "))

It returns whatever you type , if you want spaces to be included, add a true
flag (like T) after getstring
eg:

(setq myname (getstring T "\nType your name: "))

if you want it to be displayed afterwards do:

(princ myname)


Nir Sullam

sySOFT CAD Solutions

http://www.actcom.co.il/sysoft

0 new messages