>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
>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