Page 1 of 1
Array Editor Load from file
Posted: 28 Nov 2025, 10:10
by grego mondo
Hello
I use an Array Editor to make a scheduler for an installation.
10 lines & 13 columns
Works fine
I save my Array Editor to a file
when I load a file I get an Error message :
PROC:Loadfromfile
ERROR:List index out of bound (13)
Re: Array Editor Load from file
Posted: 29 Nov 2025, 14:54
by oli_lab
Hi,
that is probably because you ask to scan the array before knowing its size.
but :
Another way to do what you want would be to use global array string.
on each of the 10 lines of the array you'll have the 13 values converted in strings like so : 10;26;54;12;80;0;56;29;13;22;35;44;29
makes for more robust way to save datas as it is easy then to edit the datas from an external text editor
Re: Array Editor Load from file
Posted: 29 Nov 2025, 15:40
by grego mondo
Thanks Oli
I couldn't remember that global array string trick.
It look like a bug because I tried creating an Array Editor with prefered values : save ok, loading give the same error message.
Re: Array Editor Load from file
Posted: 29 Nov 2025, 19:29
by oli_lab
Yeah you're right, there's something wrong. I have the same error and the only the 1st line loads.
it is working fine with HH7 although it is exactly the same module in both versions.
do you need any help with the global array trick ? there is 2 submodules in the various tools addons : array to string and string to array
Re: Array Editor Load from file
Posted: 30 Nov 2025, 22:30
by oli_lab
Re: Array Editor Load from file
Posted: 30 Nov 2025, 22:45
by grego mondo
I did this
with a simple global array
Re: Array Editor Load from file
Posted: 30 Nov 2025, 23:32
by oli_lab
cool !
- my global string trick allows for readable file and better compatibility if you'll need to add columns later on.
- the pass module after the "global array get array" is not necessary as you can add paas if change inside that module.
- you could use panel text module for display or at least set the combobox to non-editable
- in french it is called "un programmateur horaire"
++
Olivar
Re: Array Editor Load from file
Posted: 01 Dec 2025, 15:46
by grego mondo
cool !
- my global string trick allows for readable file and better compatibility if you'll need to add columns later on. +1 (that's a good point)
- the pass module after the "global array get array" is not necessary as you can add paas if change inside that module. the idea was to get global array just when I load it
- you could use panel text module for display or at least set the combobox to non-editable ?
- in french it is called "un programmateur horaire"

I agree but Groupe Laps what to call it Scheduleur ...
Re: Array Editor Load from file
Posted: 01 Dec 2025, 16:57
by oli_lab
grego mondo wrote: ↑01 Dec 2025, 15:46
cool !
- my global string trick allows for readable file and better compatibility if you'll need to add columns later on. +1 (that's a good point)
- the pass module after the "global array get array" is not necessary as you can add paas if change inside that module. the idea was to get global array just when I load it
- you could use panel text module for display or at least set the combobox to non-editable ?
- in french it is called "un programmateur horaire"

I agree but Groupe Laps what to call it Scheduleur ...
- thanx,
- "the idea was to get global array just when I load it" : that is what will happen if you tick th "add pass only if change"
- You have combobox that you use for display only, you could have them set to "edit enable" = 0 OR combine different strings (day, date and month) into a single string then feed a panel text in overlay mode.
- frenglish !
++
Olivar
Re: Array Editor Load from file
Posted: 01 Dec 2025, 17:41
by grego mondo
- "the idea was to get global array just when I load it" : that is what will happen if you tick th "add pass only if change"
Am I right if I say that when I change value in my Editor > it change the global Array > so the value pass out of "get global array" ?
- You have combobox that you use for display only, you could have them set to "edit enable" = 0 OR combine different strings (day, date and month) into a single string then feed a panel text in overlay mode.
It took me time to find (Iwas looking in the first page of settings, not in the "view" one) good tips (I believed I knew it and forgot it ...)
Re: Array Editor Load from file
Posted: 01 Dec 2025, 19:36
by oli_lab
"Am I right if I say that when I change value in my Editor > it change the global Array > so the value pass out of "get global array" ?"
Guesso, but since it is the same values on each side, won't do any harm
++
Olivar