Post Reply 
EDITLIST
08-10-2018, 04:32 PM
Post: #1
EDITLIST
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 ?

Sorry for my english
Find all posts by this user
Quote this message in a reply
08-10-2018, 11:30 PM (This post was last modified: 08-10-2018 11:41 PM by roadrunner.)
Post: #2
RE: EDITLIST
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
Find all posts by this user
Quote this message in a reply
08-11-2018, 04:53 AM (This post was last modified: 08-11-2018 04:53 AM by Tyann.)
Post: #3
RE: EDITLIST
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.

Sorry for my english
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: