HP Forums
EDITLIST - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: EDITLIST (/thread-11204.html)



EDITLIST - Tyann - 08-10-2018 04:32 PM

Bonjour

En lisant l'aide sur EDITLIST, j'ai pensé que l'on pouvait
éditer plusieurs listes simultanément.
Puisque l'on parle de noms de colonnes.
Mais je n'y arrive pas.
J'ai essayé :
Code:

Essai
BEGIN
 Local l:={1,2,3,4,5},m:={0,0,0,0,0};
 EDITLIST({l,m},{"titre",{},{"X","Y"});
END;
Mais je me retrouve avec 2 lignes qui contiennent l et m et une seule colonne ?


Hello

Reading the help on EDITLIST, I thought we could
edit several lists simultaneously.
Since we are talking about column names.
But I can not.
I tried :
Code:

Essai
BEGIN
 Local l:={1,2,3,4,5},m:={0,0,0,0,0};
 EDITLIST({l,m},{"titre",{},{"X","Y"});
END;

But I end up with 2 lines that contain l and m and a single column ?


RE: EDITLIST - roadrunner - 08-10-2018 11:30 PM

Indeed, edit list does not seem to function as advertised. EDITMAT does however; perhaps you could use list2mat, EDITMAT, and mat2list instead:

Code:
EXPORT eraseme()
BEGIN
 LOCAL l,m:={1,6,2,7,3,8,4,9,5,10};
 l:=list2mat(m,2);
 mat2list(EDITMAT(l,{"title",{"A","B","C","D","E","F"},{"a","b","c"}}));
END;

-road


RE: EDITLIST - Tyann - 08-11-2018 04:53 AM

Bonjour

Convertir des listes en matrices est une bonne idée Merci.
Cependant si les listes contiennent des chaînes de caractères cela ne
pourra pas se faire.
Mais oui pour des valeurs numériques c'est une possibilité.


Hello

Converting lists to matrices is a good idea Thank you.
However if the lists contain strings this does not
can not be done.
But yes for numerical values ​​is a possibility.