Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays
Message
 
 
À
13/06/2002 16:44:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Arrays
Divers
Thread ID:
00668248
Message ID:
00668275
Vues:
21
>What's the best way to insert values into an array all at once?
>
>I have _array(3) and want to insert 1,2,3.
>
>I thought there was a way like _array(3) = (1,2,3) in another language so was wondering if there is something similar in Fox that I can't find.
>
Not in FoxPro. You've to assign value to each element of array individualy.
_array(1) = 1
_array(2) = 2
_array(3) = 3
* or
FOR i=1 TO 3
  _array(i) = i
ENDFOR
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform