Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array Problem
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00878606
Message ID:
00878607
Vues:
14
Ken,

It's much easier to do with a query.
SELECT * FROM mytable ;
  INTO ARRAY myarray
>I'm trying to load an array with the contents of a table. The table has 5 records and four fields. My code is:
>DIMENSION myarray(5,4)
>SELECT mytable
>GO TOP
>COPY TO ARRAY myarray
>DISPLAY MEMORY LIKE MYARRAY = nothing.
>If I dimension the array(4,4) the first 4 records populate the array.
>
>What am I doing wrong?
>
>Thanks.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform