Post Reply 
Hp prime questions (plus little explorations).
12-27-2017, 07:28 AM
Post: #25
RE: Hp prime questions (plus little explorations).
(12-27-2017 06:22 AM)Joe Horn Wrote:  
(12-27-2017 02:52 AM)toml_12953 Wrote:  Yes. There is no composite data type like a record in PPL.

Fair Warning: 'table' has always been a little buggy in Prime, and never supported, so if you use it in programs, be sure to test it thoroughly, and beware that 'table' MIGHT vanish entirely in a future firmware update.

That's why I never recommend it. I'd really like to see real records implemented as in C or Pascal. Right now I use a table with dimension size equal to the number of fields in the record of interest and then use subscripts in place of dot notation to access fields in my pseudo-record.

LOCAL Nam:=1, Address:=2, Phone:=3;
then to get the address of a person use:

Myrec(Address) in place of

Myrec.Address

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Hp prime questions (plus little explorations). - toml_12953 - 12-27-2017 07:28 AM



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