>>It does work if you explicitly have
#include c:\visualstudio\vfp98\foxpro.h as the first line of the blocked code. To me, this defeats the purpose of having the _include and the ability to specify a form's include file.
>
>Mark,
>
>When you run a block of code it essentially creates a temporary .prg from the blocked code, compiles it, then runs it. I haven't tried this, but I think you'll also find that any references like THISFORM won't work either.
I can see why that will not work. It looks like the compiling done by this technique is ignoring the new _Include feature and the form's defined include file because it does work if I explicitly add the #Include statement at the beginning of the blocked code. Maybe the _Include is only used by the PM or when you save the form. Bummer :(
Mark McCasland
Midlothian, TX USA