Rhett_CAD Posted August 2, 2011 Share Posted August 2, 2011 Hi all, am totally new to LISP, have only every created super basic ones myself so bear with me.. I am trying to get a routine that will remove all but the first three digits of my raw description. For example, raw description "30322" would be changed to "303". Can this be done, how difficult would it be? My descriptions wont always be 5 digits so I cant just delete the last three. Any help will be much appreciated, cheers! Quote Link to comment Share on other sites More sharing options...
MSasu Posted August 2, 2011 Share Posted August 2, 2011 Please check the SUBSTR function. (substr "30322" 1 3) [i]Returns:[/i] "303" Regards, Mircea Quote Link to comment Share on other sites More sharing options...
Rhett_CAD Posted August 4, 2011 Author Share Posted August 4, 2011 Thanks, that should get me started, ill see what I can do Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.