For example, the following example code returns the first 7 characters of the provided string: (substr "Welcome to AutoLISP" 1 7) If want to return a substring that is at the beginning or middle of the string provided to the substr function, you can specify an integer for the third argument that represents the number of characters that should be returned. If the third argument is not provided, substr returns all characters including and following the specified start character. The first argument is a string and the second argument is an integer that represents the start character of the string that you want to return as the substring. This function requires two arguments and has one optional argument. The substr function allows you to return a portion of a string.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |