HP Forums
Strings inside matrix editor on 50g - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: Strings inside matrix editor on 50g (/thread-244060.html)



Strings inside matrix editor on 50g - Chris Smith - 05-22-2013

Anyone know if its possible to add strings to a column inside the matrix writer on the 50g? I get a bad argument type error.

I'm trying to build a primitive database system for the 50g Which allows simple key value pair lookups by name and vice versa.

Failing that I'll implement a dictionary/hash table lisp-style with lists ( unless anyone is aware of a better solution).


Edited: 22 May 2013, 1:44 p.m.


Re: Strings inside matrix editor on 50g - peacecalc - 05-22-2013

Hello Chris,

The only possibility i see: is to enter variable-names which are single-quoted as matrix-elements.

for example: 'NoChance', 'whatXeverXyouXwant' or like that, but don't begin with a number and a underscore isn't possible either.

Greetings
peacecalc


Re: Strings inside matrix editor on 50g - Gilles Carpentier - 05-22-2013

"Anyone know if its possible to add strings to a column inside the matrix writer on the 50g?"

Yes you can. Set the flag 91

This allows MTWR to work with list of list and that seems perfect for your purpose.

So you can enter not only strings but all kinds of objects with the matrix writer (including other lists).

Edited: 22 May 2013, 3:57 p.m.


Re: Strings inside matrix editor on 50g - Chris Smith - 05-22-2013

Fantastic! That did exactly what I was hoping for.

Thanks for your help.