Debugging data environment

This forum is meant for questions about the Visual FoxPro Language support in X#.

Post Reply
User avatar
Eric Selje
Posts: 31
Joined: Sun Sep 22, 2019 3:16 pm

Debugging data environment

Post by Eric Selje »

What would I put down in the watch window if I wanted to know about the current data environment, like DBF(), RECNO(), field values, etc.?
User avatar
robert
Posts: 4326
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Debugging data environment

Post by robert »

Eric,

XSharp.RuntimeState.Workareas contains the info that you need. It has the list of aliases, cursors, current area etc.
XSharp.RuntimeState.GetInstance() contains the settings (SET xx ON/OFF etc)

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
Eric Selje
Posts: 31
Joined: Sun Sep 22, 2019 3:16 pm

Debugging data environment

Post by Eric Selje »

Exactly what I needed - thanks!
Post Reply