General information
Category:
Coding, syntax & commands
>I'm looking for a command issued in the watch window (or anywhere) that will tell me which tables are in which areas. I'm debugging a program that makes references like select a and I can't locate where a is assigned.
>
While AUSED() and the Data Session window will help you track things down, you really should change the code. Use SELECT TheAlias rather than SELECT the work area, and then it's easy to see which table your code is selecting.
Also, write as much of your code as possible so it doesn't matter which work area is current. Most of the old Xbase type commands now accept an IN clause, so you can write things like:
GO TOP IN Customer
Most of the functions accept the alias as a parameter. There are only a few places left where it matters what the current work area.
Tamar
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only