ORDER Error
|
01-03-2021, 03:38 PM
(This post was last modified: 01-03-2021 03:45 PM by MNH.)
Post: #1
|
|||
|
|||
ORDER Error
[attachment=8981]
Apparently the bad arguments are the two unallowed names. Is there a SYSEVAL that will work? |
|||
01-03-2021, 03:45 PM
Post: #2
|
|||
|
|||
RE: ORDER Error
"!" is a built-in function (factorial) which may be interfering?
--Bob Prosperi |
|||
01-03-2021, 06:12 PM
Post: #3
|
|||
|
|||
RE: ORDER Error | |||
01-07-2021, 12:39 PM
Post: #4
|
|||
|
|||
RE: ORDER Error
The job of the ORDER command is not to reorder the elements of a given menu, but to reorder the variables in the current directory, that is, to adequately rearrange the linked list of identifier/object pairs stored in the dedicated RAM area called USEROB. The new order will then automatically be reflected by the built-in VAR menu — but not by any other menu, including temporary or custom menus containing, or even consisting entirely of, variables from the current directory.
|
|||
01-07-2021, 01:20 PM
Post: #5
|
|||
|
|||
RE: ORDER Error
(01-07-2021 12:39 PM)Giuseppe Donnini Wrote: The job of the ORDER command is not to reorder the elements of a given menu, but to reorder the variables in the current directory, that is, to adequately rearrange the linked list of identifier/object pairs stored in the dedicated RAM area called USEROB. The new order will then automatically be reflected by the built-in VAR menu — but not by any other menu, including temporary or custom menus containing, or even consisting entirely of, variables from the current directory. All true, of course, but I (perhaps mistakenly) perceived the actual goal here as simply placing certain strings in those menu positions on the screen to achieve the display of a particular message. Hence my suggestion. If MNH truly wants to rearrange the order of those globals in the directory, one way to do that without running into the command-line parser's confusion would be:
Having to "jump through hoops" like this is just one of the potential pitfalls of having non-standard names for globals, which is a good reason not to use them IMHO. |
|||
01-07-2021, 05:42 PM
Post: #6
|
|||
|
|||
RE: ORDER Error
I totally agree, my reply was actually to MNH in order to help him clarify his objective. I know from another thread that he experimented with $>ID, so the menu shown in the screenshot could after all be the VAR menu, exhibiting two variables with prohibited names: '2021' and '!'. We simply don't know.
|
|||
01-10-2021, 11:50 AM
Post: #7
|
|||
|
|||
RE: ORDER Error | |||
01-10-2021, 12:27 PM
(This post was last modified: 01-10-2021 12:28 PM by MNH.)
Post: #8
|
|||
|
|||
RE: ORDER Error
Thanks to everyone for replying! I just wanted to know why the ORDER command generated an error when acting on a particular list of objects and if there's a SYSEVAL that will work. I assumed that the two unallowed names were causing the error because they are the wrong object types. I understand that there are other ways to display the variables in order in the VAR menu. In the past I've always used ORDER to accomplish this.
|
|||
01-10-2021, 02:48 PM
Post: #9
|
|||
|
|||
RE: ORDER Error
(01-07-2021 01:20 PM)DavidM Wrote:(01-07-2021 12:39 PM)Giuseppe Donnini Wrote: ...reorder the variables in the current directory The real question is still open: HOW? Cs. BTW: DavidM: no need to use strings, simple put the names into a list, then 'CST' STO {HAPPY NEW YEAR 2021 !} 'CST' STO |
|||
01-10-2021, 05:54 PM
Post: #10
|
|||
|
|||
RE: ORDER Error
(01-10-2021 02:48 PM)Csaba Tizedes Wrote:(01-07-2021 01:20 PM)DavidM Wrote: ... those globals in the directory... You'd have to read this thread to get the complete picture here. In addition to the globals with "normal" names, he created a couple with non-standard names as well (using #5B15 SYSEVAL to create the IDs). Yes, he could always delete and then re-create the variables in reverse order so that the order was as needed. ORDER can also be used, but the '2021' ID can't be inserted into a list by simply pressing it's menu key or typing the characters in. Some alternative needs to be used. There are several, my suggestion to use VARS and the interactive stack to rearrange things is just one of them. |
|||
03-28-2021, 09:04 PM
Post: #11
|
|||
|
|||
RE: ORDER Error
(01-10-2021 02:48 PM)Csaba Tizedes Wrote: The real question is still open: HOW? Delete ! from the list. ORDER will arrange the first four and place ! at the end. HP48GX, HP42s and DM42. |
|||
03-28-2021, 09:16 PM
Post: #12
|
|||
|
|||
RE: ORDER Error
(03-28-2021 09:04 PM)DM48 Wrote:(01-10-2021 02:48 PM)Csaba Tizedes Wrote: The real question is still open: HOW? I think you may be mistaking ORDER for SORT. ORDER is the command to arrange the variables in a specific order, namely the one provided by the list argument. SORT simply rearranges the list. Neither command will allow for an existing command name to be used within the list. Graph 3D | QPI | SolveSys |
|||
03-29-2021, 03:27 PM
Post: #13
|
|||
|
|||
RE: ORDER Error
(03-28-2021 09:16 PM)Han Wrote:(03-28-2021 09:04 PM)DM48 Wrote: Delete ! from the list. ORDER will arrange the first four and place ! at the end. Hey Han. Maybe I am confused. When I enter Code: { HAPPY NEW YEAR} ORDER The menu is rearrange with those three variables listed to the far left in that order. Any other objects in the menu are pushed to the right. What am I missing? HP48GX, HP42s and DM42. |
|||
03-29-2021, 04:37 PM
Post: #14
|
|||
|
|||
RE: ORDER Error
SORT is for sorting an arbitrary list, while ORDER is specifically for establishing the display order of the VARS in the VAR menu. It will display the items you specify in that order starting from the left, then continues with others in the order they were already in.
SORT - Sorting any list ORDER - Specifying the displayed order of the VAR menu. --Bob Prosperi |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)