Post Reply 
lib for developers : libAssoc
11-10-2020, 01:18 PM
Post: #4
RE: lib for developers : libAssoc
Hello people,
I found the key/value list a very important resource.
Some time ago, I was looking for a solution to save the values of some variables of a program, to be used in future executions of the same program, or of other programs.
I tried to use LibAssoc, but I'm not getting it right.
Both LibList and LibAssoc are installed on the calculator. I tried to use the L1 list as well as a list previously created by me. Does not work. Does anyone know what the reason is?

//Test use of LibAssoc
//Marcos Cabral
[/code]LibList();
LibAssoc();
display();

EXPORT TESTE()
BEGIN
LOCAL Size, Position, Key, Value;

L1:=AL_NEW();

AL_SET(L1, "Q", 6.2);
AL_SET(L1, "V", 2.0);
AL_SET(L1, "Y", 0.80);

Size:=AL_SIZE(L1);
Position:= AL_FKEY(L1,"V");
Value:=AL_GET(L1,"V");

PRINT();
PRINT("Size=" + Size);
PRINT("Position=" + Position);
PRINT("Value=" + Value);

AL_FOREACH(L1, "display"); // show all entries in the list

END;

EXPORT display(k,v)
PRINT(k+" -> "+v);
END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
lib for developers : libAssoc - primer - 09-17-2017, 04:09 PM
RE: lib for developers : libAssoc - pier4r - 09-17-2017, 04:51 PM
RE: lib for developers : libAssoc - primer - 09-17-2017, 05:26 PM
RE: lib for developers : libAssoc - Marcos Cabral - 11-10-2020 01:18 PM



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