Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
!empty statement issue in arrays
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01509826
Message ID:
01509827
Vues:
51
>I have an array the I have populated with values. When I go to test the array to see if it is empty, the "!empty" statements doesn't behave correctly. My array has values, and it should execute the "IF" statement code. Here is my code below:
>
>
>if !empty(a__generic)
>	append from array a__generic   && this should execute, because a__generic has values
>endif
>
>
>
>the append from array should have executed. Is there a different way I should test to see if the array is filled or empty?
>
>thanks
>Nick

You can check ALEN(a_Generic) to see if you have defined array with more than 1 element. However, there is no function in VFP to check if every element of the array is populated without using a loop.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform