Post Reply 
Prime newbie questions
01-31-2023, 08:58 PM
Post: #2
RE: Prime newbie questions
(01-31-2023 11:57 AM)x34 Wrote:  Hi! Just started to use me new Prime G2. I am very depressed by the built-in program editor, which very bad. Several questions:

1. Why there is no dedicated assignment operator ":=" key? ALPHA+Enter looks like very good candidate.

2. Is it possible to get rid of the line numbers? It is not BASIC, why do we need them?

3. Are there any loadable editors with search/replace and syntax highlight?

4. Where can I find information on USB commands?

5. Also, I am unable to find information about variable types (real/integer/string/char/list,etc) and conversion/cast.

tia, Paul

1. Seems to be a good Idea. Side effects?
2. Once you develop longer programs, line numbers are very helpful. Look at <More> while in the editor. Easy to jump to a specific line. BTW: Line numbers are not part of the code, they are part of the editor.
3. Notepad++ comes in very handy(if you have Windows), even with an HP Prime extension available. Here you'll see line numbers again, very helpful for navigation in longer files.
4. don't know
5. Use pre-defined A..Z, L0..L9, M0..M9 for numeric, List and Matrix variables respectively. If you need more descriptive variable names or something for strings etc., create them by typing in anything, touch the Sto> soft button and give it an arbitrary name, confirm that you want to create it - et voilà this variable is now available to your convenience.

Except for the pre-assigned names mentioned above, the name doesn't say anything about the content. E.g. an intentionally name created as shown above e.g "name" may now contain a number but next time a matrix or string. It's under your control. You mentioned "it's not Basic", you're right it isn't.

WRT to conversion, the fine manual is where to go.

HTH Günter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Prime newbie questions - x34 - 01-31-2023, 11:57 AM
RE: Prime newbie questions - Guenter Schink - 01-31-2023 08:58 PM
RE: Prime newbie questions - x34 - 01-31-2023, 10:41 PM
RE: Prime newbie questions - JimP - 01-31-2023, 11:40 PM
RE: Prime newbie questions - x34 - 02-01-2023, 05:56 AM
RE: Prime newbie questions - Tyann - 02-01-2023, 11:34 AM



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