xsharp.eu • Debugging data environment
Page 1 of 1

Debugging data environment

Posted: Wed Oct 07, 2020 9:09 pm
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.?

Debugging data environment

Posted: Wed Oct 07, 2020 9:16 pm
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

Debugging data environment

Posted: Thu Oct 08, 2020 3:51 pm
by Eric Selje
Exactly what I needed - thanks!