EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
<Var/Array>[<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, 13:32    Post subject: <Var/Array>[<Var/Number>] = <Value> Reply with quote Print

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


<Var/Array> = The array to put the value into.
<Var/Number> = The array index (element) position for the value.
<Value> = What is to be inserted into the array.


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


Example:

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

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


Command Location:



Back to top
View user's profile Send private message Send e-mail
Alex Vanderbilt
Winner X3 Sektorquest


MEDALMEDAL

Joined: 04 May 2006
Posts: 2113 on topic

Thank you for registering your game
PostPosted: Sun, 3. Oct 10, 17:25    Post subject: [TiP][49] 286698 Reply with quote Print

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

<Var/Array> = Das Array, in das der Wert eingesetzt werden soll.
<Var/Number> = Die Position auf der Liste, wo der Wert hin soll.
<Value> = Die Information, die in das Array eingetragen werden soll.

Das Kommando erlaubt es, einen Wert für ein Element eines Arrays festzulegen.
Im Vorfeld muss das Array die korrekten Nummern für die Elemente festgelegt haben.
Mit diesem Kommando kann man die Nummer von Elementen in einem Array nicht erhöhen!

Beispiel:

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

Hier wird der Wert 10 in das Array $array.1 am Listenpunkt 5 [ 5 ] eingesetzt.


Zu finden unter:



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



MEDAL

Joined: 17 Jul 2011
Posts: 2201 on topic
Location: DeVries/Verità Accecante/Corona Ardente
Thank you for registering your game
PostPosted: Sat, 18. Aug 12, 17:10    Post subject: [39]286698 Reply with quote Print

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


<Var/Array> = L'array in cui inserire il valore.
<Var/Number> = L'indice (cioè l'elemento) dell'array in cui inserire il valore.
<Value> = Il valore che deve essere inserito nell'array.


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


Esempio:

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

In questo modo il valore 10 sarà inserito nell'array $array.1 all'indice 5 [ 5 ].


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 Tue, 30. May 17, 03: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.23016 seconds, sql queries = 17