IniRead - Variablen aus Array

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: IniRead - Variablen aus Array

Re: IniRead - Variablen aus Array

Post by Gucky_87 » 17 Feb 2018, 08:56

Ich glaube, ich habe einen Weg.

In der Hilfe steht:
IniRead, AusgabeVarSektion, Dateiname, Sektion

Vielleicht komm ich damit schon klar. Mal ein wenig 'spielen'...

Gucky

IniRead - Variablen aus Array

Post by Gucky_87 » 17 Feb 2018, 08:37

Huhu Leute,

Ist es möglich, mit IniRead den Variablennamen aus einem Array zu holen?

Code: Select all

    LISTE := ["1", "2", 3"]
    Loop % LISTE.MaxIndex()
        IniRead, % "VAR_" . LISTE[A_Index], Test.ini, Settings, % "INI_" . LISTE[A_Index]
Dabei sollen die internen Variablen 'VAR_1'... 'VAR_3' aus den Ini Einträgen 'INI_1' bis 'INI_3' gelesen werden.

In der obigen Form gehts nicht, da ich die Meldung bekomme, dass % Zeichen nicht erlaubt sind.


Danke im Voraus,

Gucky.

Top