Variable Syntax Question

Hi everyone ! I have a simple question. Does it is possible to define each line of an array in one sentence

Here is the example :

VAR String Mot_Controle{7,2};

!Définition des variables
Data:=“”;
Mot_Controle{1,1}:=“PHP0”;
Mot_Controle{1,2}:=“Demande d’arrêt de la pompe”;
Mot_Controle{2,1}:=“PHP1”;
Mot_Controle{2,2}:=“Demande de basse Pression”;
Mot_Controle{3,1}:=“PHP2”;
Mot_Controle{3,2}:=“Demande de haute Pression”;
Mot_Controle{4,1}:=“PHP3”;
Mot_Controle{4,2}:=“Demande de départ de la pompe”;
Mot_Controle{5,1}:=“PHP4”;
Mot_Controle{5,2}:=“Demande d’état de la pompe”;
Mot_Controle{6,1}:=“PHP5”;
Mot_Controle{6,2}:=“Signal Robot au repos”;
Mot_Controle{7,1}:=“PHP6”;
Mot_Controle{7,2}:=“Signale Robot en Découpe”;

Does it is possible to define the 1,1 and the 1,2 on the same line ?

Thanks !

VAR String anArray{7,2};
anArray:=[[“”,“”],[“”,“”],[“”,“”],[“”,“”],[“”,“”],[“”,“”],[“”,“”]];

Thanks !

There is an commande to find the position of a specific string within the array ? I can do it using a for loop but I’m looking for a simpler way

Don’t think so – I always FOR loop to find.