The following warnings occurred:
Warning [2] Undefined array key 22270 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 22274 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 22336 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 22341 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $thread - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $fid - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 22341 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $lang - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Attempt to read property "messages_in_thread" on null - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks





42s Programming Question



#4

For convenience, I would like to "insert" a program so that the menu keys for the programs are in a particular order. If I use the GOTO . . I get a new program at the "front" of the menu, which corresponds to the last program in memory. Can I do this without re-entering programs?

Is it possible to do this, or should I use the custom menu and assign programs to keys that way?


#5

Hi;

I am almost sure the procedures described bellow are known by you, but I decided to keep them there, so anyone else that doesn't know how to accomplish these procedures will be able to understand; O.K.?

There is no other way to put program labels in a specific order than by "inserting" them in memory in this order. As you mentioned, after a GTO[.][.], the "program memory" (an internal pointer) will be positioned in the "top" of the program memory.

Anyway, you can always position the pointer in between two existing programs and "insert" a complete, new one in there. Imagine you have:

.END.
END
.
.
LBL"THELAST"
END
.
.
LBL"THENEXT"
END
.
.
LBL"FIRSTNE"
If you want to add a new one and get this arrangement:
.END.
END
.
.
LBL"LAST"
END
.
.
LBL"NEXT"
END
.
.
LBL"MID"
END
.
.
LBL"FIRST"
you should: (in normal mode)
[SHIFT][GTO] [NEXT]     (NEXT will appear as a menu key)
[SHIFT][PRGM] (enters into PRGM mode)
[SHIFT][GTO][.]0[ENTER] (positions before the first line of NEXT program)
(insert all lines for the program
[XEQ] END (so the new program in its own space...)
[SHIFT][PRGM] (leaves PRGM mode)
[SHIFT][GTO][.][.]

Otherwise, if you want to trade one label for the other, you should "reinsert" all lines for the existing program and delete it's previous "existence".

Using CUSTOM or TMENU (with KEYGO or KEYXEQ) will be, indeed, more efficient, as you mentioned.

As I mentioned in the beginning, I am almost sure you are reading about your own thoughts. Anyway, I hope this helps.

Cheers.

(Please, if there is anything wrong, allow me to know)


#6

Luiz,

Thanks. I was just airing out a brain fart. I was trying to insert a "LBL" function when I should have been inserting an "END" function.

I should have known better. I've been using the same calculator since 1990. It got me through high school, undergrad and grad school (mechanical engineering). One would think I could do something like this without asking.

Thanks again.

Steven


#7

Hi!

You see? I was sure you knew it. it was a matter of reading and figurin out your own answer.

I'm a teacher, and I encourage my students to ask WHATEVER they want to. Among many, the best benefits for me are:

I'll know if I'm able to figure out an answer;
I'll know if my answer clears the doubt out;
I'll show myself I have these abilities

Wanna know something? I believe I speak for the others when I say this: everytime I know the answer to some of the questions posted here, I'm posting it ASAP, so I'll have the chance to hear from the others that will, when needed, correct my answer OR complet it. It's a sharing place! When I myself fail knowing the answer, I ansiously wait till someone posts it.

Thank you allowing me to know I know this answer. (in fact, from previous HP41 knowledge base..)

Best regards.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple? programming question [WP34S] Shawn Gibson 3 1,414 03-15-2013, 11:56 AM
Last Post: Didier Lachieze
  HP 42s programming help for novice Carl D (new) 4 1,564 02-02-2013, 11:39 PM
Last Post: Mike Morrow
  42s program question David Persinger (US) 5 1,751 08-09-2012, 06:34 AM
Last Post: David Persinger (US)
  WP-34S Programming Question Matt Agajanian 2 1,220 08-04-2012, 02:04 PM
Last Post: Matt Agajanian
  WP 34S programming question Nigel J Dowrick 35 7,971 04-10-2012, 02:23 AM
Last Post: Walter B
  15C programming question Eric Zoob 7 2,155 03-28-2012, 03:14 PM
Last Post: C.Ret
  Re: RPN Programming exercise (HP-42S) Gerson W. Barbosa 1 1,011 02-27-2012, 05:51 PM
Last Post: Marcus von Cube, Germany
  RPN Programming exercise (HP-42S) Gerson W. Barbosa 71 13,162 02-26-2012, 11:48 AM
Last Post: Valentin Albillo
  42s questions and 42s vs 35s snaggs 13 5,189 09-19-2011, 02:44 AM
Last Post: snaggs
  Question about programming the HP-71B Namir 27 5,697 11-28-2010, 01:50 PM
Last Post: Egan Ford

Forum Jump: