• Hallo Klaus,

    wäre es möglich (mehrdimensionale) array-Variable einzuführen?

    Ich könnte solche Variable an verschiedenen Stellen brauchen:

    • x und y Positionen von Markern auf den Grundrissplänen
    Code
    set(map-spot-position["R001"."x"], "269");
    set(map-spot-position["R001"."y"], "78");
    
    
    set(map-spot-position["R002"."x"], "269");
    set(map-spot-position["R002"."y"], "78");
    
    
    ...
    set(plugin[mapspot-R001].x, get(map-spot-position["R001"."x"]

    oder wie auch immer notiert ..

    • Texte in verschiedenen Sprachen, indexiert über Sprachkürzel "de", "en", ...

    Ich hoffe, ich konnte mich in der Kürze verständlich ausdrücken.

    Viele Grüße

    Sepp

  • Hi,

    es ist bereits möglich mehrdimensionale Arrays zu verwenden,

    z.B.

    Code
    <test name="a1">
      <sub name="b1" val="1" />
      <sub name="b2" val="2" />
    </test >
    
    
    <test name="a2">
      <sub name="c1" val="3" />
      <sub name="c2" val="4" />
    </test>

    der Zugriff darauf:

    Code
    trace('test.count=', test.count);
    trace('test[a1].sub.count=', test[a1].sub.count);
    trace('val=', test[a1].sub[b1].val );

    Schöne Grüße,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!