From the course: Learning AutoLISP & Visual LISP

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Function: strcase

Function: strcase - AutoCAD Tutorial

From the course: Learning AutoLISP & Visual LISP

Start my 1-month free trial

Function: strcase

- [Instructor] Much of the data that we're going to be working with in LISP, whether it's data we receive from the user or data we receive from variables, they're going to be in string format. So, let's discuss some of the LISP functions that we can use to read, edit, manipulate, and work with strings. The first LISP function deals with case sensitivity of our strings. For example, if we provided a string to check against another string in an if condition, that is case sensitive. So, we want to set the case of all of our strings, if case sensitivity's not important to us, to being uppercase or lowercase. So, let's go ahead and provide the argument for the string case LISP function, and we'll set the argument or our string to being Bill. Now, when we run this it automatically sets the string to being all uppercase. Notice it goes from simply a uppercase B to having all letters being uppercase. Now, we can change that simply by adding another argument, which is optional. The optional…

Contents