Entering the 'Edit Integer' window
|
01-08-2024, 11:43 PM
(This post was last modified: 01-08-2024 11:55 PM by komame.)
Post: #21
|
|||
|
|||
RE: Entering the 'Edit Integer' window
(01-08-2024 10:49 PM)matalog Wrote: Something in the line The problem stemmed from the fact that the EXECON instruction did not work correctly with the local variable "hc" (it probably requires a global variable). I had a variable "hc" with the same content also declared in HOME, which is why it accidentally worked correctly on my device. After removing this variable from HOME, the problem indeed occurred. Then, when I replaced the "hc" variable in the program with the global list "L1", everything worked correctly. The lack of support for local variables in EXECON seems to be a bug, but I need to investigate it more thoroughly. Below is the working version based on the list L1. Code: KEY KS_Minus() EDIT: Another solution is to declare the variable "hc" as EXPORT in the header: Code: EXPORT hc:="0123456789ABCDEF"; |
|||
01-09-2024, 12:13 AM
Post: #22
|
|||
|
|||
RE: Entering the 'Edit Integer' window
I've found another solution that doesn't require the use of any variables in EXECON and it works correctly.
Code: KEY KS_Minus() |
|||
01-10-2024, 05:09 PM
(This post was last modified: 01-10-2024 08:10 PM by komame.)
Post: #23
|
|||
|
|||
RE: Entering the 'Edit Integer' window
As promised, I have prepared another solution. This version operates on values from 0 to FFFFFFFFFFFFFFF (which is significantly larger than before) and it also has cursor control, so you can edit individual digits in DEC and HEX values. The program has become quite complicated due to the implementation of the editor. It may still be possible to simplify it.
Code: KEY KS_Minus() Piotr |
|||
01-18-2024, 09:47 PM
Post: #24
|
|||
|
|||
RE: Entering the 'Edit Integer' window
(12-26-2023 09:38 PM)komame Wrote: In general, to enter the "Edit Integer" window with the first press of Shift [-], there are two approaches. The first approach involves having an integer value on the history stack (marked with a "#" sign at the beginning) as someone already mentioned in this thread. As for the second approach, the only condition is to be in edit mode (blinking cursor). There doesn't need to be any value on the stack or even in the editing field where the cursor is; you just need to enter the edit mode of anything. For instance, you can go to HOME and press the space, multiplication, or any other key that outputs any character on the screen (then the cursor will appear - edit mode), then press Shift [-] and the "Edit Integer" window will open immediately. Another good example is the PPL editor, which is always in edit mode and pressing Shift [-] always immediately opens "Edit Integer". Nice analysis! & thank you, Piotr, for adding a ticket for this to the bug tracker I've set up. (The bug got fixed! ) |
|||
01-19-2024, 08:33 PM
Post: #25
|
|||
|
|||
RE: Entering the 'Edit Integer' window | |||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)