Viv,
what do you get if you enter
?_vfp.ActiveProject.Files.Count
on command line?
If this fails what is
?_vfp.ActiveProject.Files
and
?TYPE("_vfp.ActiveProject.Files")
?
Try this from plain command line as well as from a suspended hook method
Agnes
>Hi,
>
>My point was that, in my code, the problem was not with the FOREACH (or even,AFAICS, with the project object itself) - only with the .FILES collection - the debugger was showing it as 'could not be evaluated' but with a .Count of zero. Given that I don't think a for loop would have worked either.
>
>Regards,
>Viv
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]