How fill array,with informations,step 1 info1 step 2 info 2.

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
ghost24
Newbie
Posts: 9
Joined: Mon Oct 22, 2012 11:51 pm

How fill array,with informations,step 1 info1 step 2 info 2.

Post by ghost24 » Tue Oct 23, 2012 12:43 am

Hi,
i have one .ini file with any informations, like this:

*****************
//Dynamicvariable

[task_all]
anzahl=6

[wt1]
waittime=90

[1]
nextrun=23:21:00
name=Name1
todo=
aktiv=1

[2]
nextrun=19:03:51
name=Name2
todo=
aktiv=1

[3]
nextrun=15:24:51
name=Name3
todo=
aktiv=0

[4]
nextrun=22:15:01
name=Name4
todo=
aktiv=1

[5]
nextrun=17:18:51
name=Name5
todo=
aktiv=0

[6]
nextrun=12:43:22
name=Name6
todo=
aktiv=1

.....
*******************************************

I will read the information on [1] and the value of name
then, i will put it to the arry
the max. inputs, where i have, is = [task_all] and the value from the anzahl, here it is 6,
so, i must have a arry with 6 informations.
(for the array definition)

then i do somthing, and after a few other scripting stepps, i will read the information from the .ini file again, but at the point [2] and then the value from the name, and then i will put it to the same arry, what i have use before, with the first stepp. It not the same variable name from [1], [2], [3].... all the names are different.

and this stepps i will do so often again. until, i have read all the informations fromt the point from the value names...
so, when i was ready, i will have, this example here, i will have 6 informations all in all, at the array.

and when i have the informations, i will push the informations from the arry to a post box (Listbox).

so, the only funktions of the array is, to accumulate ( or truss) the information, that i can publicate these informations with one stepp, to the list box.

my problem is, that i dont know, how can i fill the arry, step by step with the informations.
Just at the moment, i fill the arry with a informations, and at the next stepp, i dont add the next informations, i overwrite the existing informations, so, i have all the time, only 1 informations at this array.

Any one any informations or help for me?


Sorry, about my bad english!
:-)

ghost24
Newbie
Posts: 9
Joined: Mon Oct 22, 2012 11:51 pm

No one, any informations?

Post by ghost24 » Fri Oct 26, 2012 7:36 pm

hi,

no one there who have an idea?
mhhh

thx for you answers ore some info´s.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Sat Oct 27, 2012 8:08 am

Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts