>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.
Since the array always has at least one element - alas, arrays with zero elements are not supported in VFP - you might better proceed as follows:
local laMyArray(1)
select ... from ...;
into array laMyArray
if _tally > 0
else
MessageBox("No data to process. Check your selection criteria.")
endif
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)