Assigned variables and batch purge (CAS utility functions)
|
10-17-2019, 09:17 PM
(This post was last modified: 11-08-2019 06:01 AM by dae.)
Post: #1
|
|||
|
|||
Assigned variables and batch purge (CAS utility functions)
Here are a three CAS utility functions. Two of them, varslistaz() and varslist2(), identify assigned variables, showing type and value. The third can be used to batch purge single-character lower-case variables.
When a-z variables have previously assigned values, they will not work correctly as symbols in expressions or functions. They need to be purged. varslistaz() will show you which a-z variables have been assigned. If you want to clear them all (but no others) run purgeaz(). varslist2() is designed for you to edit what you want to view. If you frequently use values such as e1, e2, e3, etc., you can add them to the list to see whether they have assigned values. A. varslistaz() identifies a-z variables which have been assigned values. It shows the variable type and the value. Code:
B. varslist2() is not limited to one-character variables. You can include any variable names by adding them to the mylist variable. Place the variable name in quotes and separate with a comma. Your variables can be placed anywhere in the list. Code:
C. purgeaz() clears the values from small a to small z (e and i are reserved and ignored) Code:
|
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Assigned variables and batch purge (CAS utility functions) - dae - 10-17-2019 09:17 PM
RE: Assigned variables and batch purge (CAS utility functions) - cdmackay - 02-27-2020, 07:00 PM
|
User(s) browsing this thread: 1 Guest(s)