• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

formatting string

  • Thread starter Thread starter Angelo2449
  • Start date Start date

Angelo2449

Guest
Hello everyone,
I would format an alphanumeric string according to a default length filling the difference between the actual length of the string and the default length.
Code:
(setq length 30)
(setq string "point")
(seq string??????????????? string))
Thank you.
 
(setq string (substr (strcat string ") 1 30))))
"point "
(setq string (substr (strcat " string) 1 30)))
"point"
 
thanks rpor66,
so it doesn't work as I want, I changed the code and now the result is perfect.
Code:
(defunc c:stringa (/)

(setq station "pippo")
(setq lung (- 30 (strlen station)))

(repeat)
(setq station (strcat " station)
);

(princ "\n")
(princ "station > > > > > > )
(princ station)

);
Thanks again.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
ciao
Back
Top