EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
<Var/Array>[<Var/Number>][<Var/Number>] = <Value>
Post new topic This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic
Author Message
mark_a_condren





Joined: 03 Aug 2005
Posts: 1385 on topic
Location: Newcastle - Australia
Thank you for registering your game
PostPosted: Sat, 11. Sep 10, 16:31    Post subject: <Var/Array>[<Var/Number>][<Var/Number>] = <Value> Reply with quote Print

<Var/Array> [ <Var/Number> ][ <Var/Number> ] = <Value>


<Var/Array> = The array name that the value is to be inserted into.
<Var/Number> = The index (element) in the required array(s).
<Value> = The value to be inserted at the desired index.


Allows you to set the value of the element of an array in a nested array.
The arrays must have previously been allocated the correct number of elements.
You cannot expand the number of elements in a nested array with this instruction.


Example:

$value = 10
$array.1 [ 2 ][ 5 ] = $value

This will insert the value 10 into array $array.1 at index 2 [ 2 ], sub index 5 [ 5 ].

See here for an exploded view of nested arrays.


Command Location:



Back to top
View user's profile Send private message Send e-mail
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)

MEDALMEDALMEDAL

Joined: 02 Apr 2006
Posts: 19748 on topic

Thank you for registering your game
PostPosted: Sat, 9. Oct 10, 18:06    Post subject: [TiP][49] 286712 Reply with quote Print

<Var/Array> [ <Var/Number> ][ <Var/Number> ] = <Value>


<Var/Array> = Der Array-Name, in das der Wert eingegeben werden soll.
<Var/Number> = Das Element in benötigtem Array.
<Value> = Der Wert, der an der gewünschten Stelle, eingegeben werden soll.


Der Befehl erlaubt es einem Element eines Arrays in einem geschachtelten Array einen Wert zuzuweisen.
Den Arrays muss zuvor die richtige Anzahl Elemente zugewiesen worden sein.
Du kannst die Anzahl der Elemente in einem geschachtelten Array mit diesem Befehl nicht erweitern.


Beispiel:

$value = 10
$array.1 [ 2 ][ 5 ] = $value

Dies wird den Wert 10 in das Array $array.1 an der Stelle 2 [ 2 ], Subindex 5 [ 5 ] eingeben.

In diesem Artikel findest du eine auseinandergezogene Ansicht eines Arrays.


Zu finden unter:



Back to top
View user's profile Send private message Visit poster's website
Juggernaut93



MEDAL

Joined: 17 Jul 2011
Posts: 2198 on topic
Location: DeVries/Verità Accecante/Corona Ardente
Thank you for registering your game
PostPosted: Tue, 28. Aug 12, 11:20    Post subject: [39]286712 Reply with quote Print

<Var/Array> [ <Var/Number> ][ <Var/Number> ] = <Value>


<Var/Array> = Il nome dell'array in cui deve essere inserito il valore.
<Var/Number> = L'indice (l'elemento) nel/negli array richiesto/i.
<Value> = Il valore che deve essere inserito all'indice desiderato.


Ti permette di impostare il valore dell'elemento di un array in un array nidificato.
Nell'array deve essere stato precedentemente allocato il numero corretto di elementi.
Non puoi espandere il numero di elementi in un array nidificato con questa istruzione.


Esempio:

$value = 10
$array.1 [ 2 ][ 5 ] = $value

Ciò inserirà il valore 10 nell'array $array.1 all'indice 2 [ 2 ], sotto-indice 5 [ 5 ].

Leggi qui per una visione esplosa di array nidificati.


Posizione dell'istruzione nella lista:



Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic This topic is locked: you cannot edit posts or make replies.
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Sat, 25. Mar 17, 19:34

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2017
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.26208 seconds, sql queries = 17