Jump to content

Recommended Posts

Posted

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!

Posted

Please check the SUBSTR function.

 

(substr "30322" 1 3)
[i]Returns:[/i] "303"

 

Regards,

Mircea

Posted

Thanks, that should get me started, ill see what I can do

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...