Message 1 of 6
initget and getpoint. a space between words is recognized as ENTER

Not applicable
01-15-2016
12:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey i'm trying to get a string or a point with the "getpoint" function. The problem is:
If i have a word with a space between the characters (like "It's OK") it interrups at the space and recognize this as a Enter.
So the qeustion is how do i keep typing with spaces between my words without getting "ENTER".
CODE PARTS here:
(initget 132 " ") (setq point (getpoint (strcat "\nType contents of text or click for point and use current text. <current: " OnzichtbareText ">" ))) (if (eq (type point) 'STR) (progn (setq OnzichtbareText point) (command "_text" point "0" OnzichtbareText) );progn (progn (if (eq (type point) 'LIST) (progn (command "_text" "s" "ONZICHTBAAR" point "0" OnzichtbareText) );progn );if );progn )