If I issue sys(1104) from the command window I consistently get 0 even if there are tables/cursors open and VFP objects and/or COM objects in memory. So I'm not sure what's up with Fabio's results.
>Oops! One more try. Fabio's code gives 2 results from 2 separate lines of code. In his test, he gets 1088 and 1088 (I presume run in the IDE). I get 0 and 0 either as IDE or as Exe.