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:
01509830
Vues:
54
You have to define what "empty array" means in your case.

>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
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform