BASIC Programs on HP 50G
03-27-2014, 09:29 PM
Post: #56
 Han Senior Member Posts: 1,834 Joined: Dec 2013
RE: BASIC Programs on HP 50G
(03-27-2014 08:05 AM)Alvaro Wrote:  Second, I am talking about Local variable Structure; please read page 3-303 (PDF 423) of the Advanced User Guide HP 50g, about (Create Local). A Local Variable must be followed either by a Expression or a Program. If you don´t proceed like that, you must use the Global Variable definition! And, inside a Program, every time you define a Local Variable it must be followed either by a Expression or a Program and repeat that so many times as you need to "pause" for variable input.
And, if I am missing something or you know it better, then it would be much more usefull to share your knowledge, if you like.

This is true if you absolutely must create a new local variable deep within the program as opposed to declaring them at the start. If your program has a fixed number of variables, then you can always create the ALL variables ahead of time and initiate them with a dummy value:
Code:
 <<   0 0 0 0 0 -> a b c d e    <<   @ now you are free to use a b c d and e as you like   >> >>
I cannot think of very many instances in which a completed program would require an indeterminate number of variables during run time. Even so, however, your programs would necessarily have a finite number of variables (if for no other reason than there is only a finite amount of memory). So you can always "pre" declare variables (for use much later on) rather than waiting until you need them to create them.

Graph 3D | QPI | SolveSys
 « Next Oldest | Next Newest »

 Messages In This Thread BASIC Programs on HP 50G - Alvaro - 03-06-2014, 12:33 PM RE: BASIC Programs on HP 50G - robert rozee - 03-08-2014, 11:30 PM RE: BASIC Programs on HP 50G - Namir - 03-08-2014, 11:59 PM RE: BASIC Programs on HP 50G - RMollov - 03-09-2014, 04:17 AM RE: BASIC Programs on HP 50G - RMollov - 03-09-2014, 04:04 AM RE: BASIC Programs on HP 50G - HP67 - 03-09-2014, 10:31 AM RE: BASIC Programs on HP 50G - r. pienne - 03-09-2014, 11:33 AM RE: BASIC Programs on HP 50G - HP67 - 03-09-2014, 11:40 AM RE: BASIC Programs on HP 50G - r. pienne - 03-09-2014, 11:57 AM RE: BASIC Programs on HP 50G - HP67 - 03-09-2014, 12:59 PM RE: BASIC Programs on HP 50G - r. pienne - 03-09-2014, 01:09 PM RE: BASIC Programs on HP 50G - HP67 - 03-09-2014, 01:19 PM RE: BASIC Programs on HP 50G - Thomas Klemm - 03-09-2014, 02:00 PM RE: BASIC Programs on HP 50G - Alvaro - 03-09-2014, 11:43 AM RE: BASIC Programs on HP 50G - Didier Lachieze - 03-09-2014, 12:11 PM RE: BASIC Programs on HP 50G - HP67 - 03-09-2014, 11:45 AM RE: BASIC Programs on HP 50G - Wes Loewer - 03-26-2014, 06:00 PM RE: BASIC Programs on HP 50G - HP67 - 03-26-2014, 06:13 PM RE: BASIC Programs on HP 50G - Wes Loewer - 03-26-2014, 07:54 PM RE: BASIC Programs on HP 50G - Alvaro - 03-26-2014, 07:56 PM RE: BASIC Programs on HP 50G - Namir - 03-09-2014, 01:59 PM RE: BASIC Programs on HP 50G - HP67 - 03-09-2014, 03:00 PM RE: BASIC Programs on HP 50G - Manolo Sobrino - 03-09-2014, 05:10 PM RE: BASIC Programs on HP 50G - Alvaro - 03-09-2014, 07:02 PM RE: BASIC Programs on HP 50G - HP67 - 03-10-2014, 07:35 AM RE: BASIC Programs on HP 50G - churichuro - 03-09-2014, 07:20 PM RE: BASIC Programs on HP 50G - Joe Horn - 03-11-2014, 04:18 AM RE: BASIC Programs on HP 50G - Massimo Gnerucci - 03-11-2014, 07:21 AM RE: BASIC Programs on HP 50G - churichuro - 03-11-2014, 03:17 PM RE: BASIC Programs on HP 50G - Howard Owen - 03-19-2014, 06:16 PM RE: BASIC Programs on HP 50G - RMollov - 03-20-2014, 07:57 AM RE: BASIC Programs on HP 50G - Alvaro - 04-20-2014, 12:39 PM RE: BASIC Programs on HP 50G - churichuro - 04-21-2014, 01:02 AM RE: BASIC Programs on HP 50G - Alvaro - 04-21-2014, 09:39 AM RE: BASIC Programs on HP 50G - churichuro - 04-21-2014, 09:27 PM RE: BASIC Programs on HP 50G - David Hayden - 03-11-2014, 03:05 AM RE: BASIC Programs on HP 50G - churichuro - 03-11-2014, 03:20 PM RE: BASIC Programs on HP 50G - churichuro - 03-11-2014, 03:29 PM RE: BASIC Programs on HP 50G - churichuro - 03-11-2014, 03:46 PM RE: BASIC Programs on HP 50G - Alvaro - 03-12-2014, 10:00 PM RE: BASIC Programs on HP 50G - churichuro - 03-13-2014, 08:07 PM RE: BASIC Programs on HP 50G - Manolo Sobrino - 03-13-2014, 09:21 PM RE: BASIC Programs on HP 50G - churichuro - 03-14-2014, 02:28 PM RE: BASIC Programs on HP 50G - Alvaro - 03-14-2014, 12:08 PM RE: BASIC Programs on HP 50G - dizzy - 03-14-2014, 01:44 PM RE: BASIC Programs on HP 50G - Alvaro - 03-15-2014, 07:23 PM RE: BASIC Programs on HP 50G - Alvaro - 03-16-2014, 02:45 PM RE: BASIC Programs on HP 50G - churichuro - 03-14-2014, 02:46 PM RE: BASIC Programs on HP 50G - dfnr2 - 03-19-2014, 03:55 PM RE: BASIC Programs on HP 50G - churichuro - 03-23-2014, 01:08 AM RE: BASIC Programs on HP 50G - Alvaro - 03-23-2014, 09:18 PM RE: BASIC Programs on HP 50G - Shawn Gibson - 03-26-2014, 02:59 PM RE: BASIC Programs on HP 50G - HP67 - 03-26-2014, 08:09 PM RE: BASIC Programs on HP 50G - Alvaro - 03-26-2014, 08:46 PM RE: BASIC Programs on HP 50G - RMollov - 03-27-2014, 03:54 AM RE: BASIC Programs on HP 50G - Alvaro - 03-27-2014, 08:05 AM RE: BASIC Programs on HP 50G - RMollov - 03-27-2014, 09:02 AM RE: BASIC Programs on HP 50G - Han - 03-27-2014 09:29 PM RE: BASIC Programs on HP 50G - Wes Loewer - 03-27-2014, 03:41 PM RE: BASIC Programs on HP 50G - Alvaro - 03-27-2014, 06:24 PM RE: BASIC Programs on HP 50G - RMollov - 03-28-2014, 02:43 AM RE: BASIC Programs on HP 50G - Howard Owen - 03-29-2014, 03:32 AM

User(s) browsing this thread: 1 Guest(s)