Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2003 Server
>>Can you test for how many elements are in an array? I need to test if the array has more than 1 element after being loaded from a table.
>
>ALEN()
This will give you the array size. However, if the array is defined (LOCAL ARRAY ...) then by default it will have at least a single row (values initialized to .F.). When ALEN(laArray,1) returns a size it will be at least one for row size but this may not be correct if no records were loaded -- you need to test the contents as well for data type.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement