Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement