Mike Yearwood
Toronto, Ontario, Canada
Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Hi Dragan
>That's because you told it to open nothing in the SELECT('Schedule') workarea. You could likewise
>So it closes and it can also open - that's the dual nature of the USE command, available since dBaseII, IIRC.
I think I wasn't clear. I think Jay may have confused opening the table with the single line close a table technique.
There is no single line way to open a table, because there's no much value in that. If it's open already, leave it open. If not, open it and then select it. Saves time
IF NOT USED("table")
use table in 0
ENDIF
select table
On the other hand, there is a single line to close a table. While it's easy to...
USE IN TABLE
If the table has already been closed, that will cause an error. So the quick, error free way to close a table is....
USE IN (SELECT("TABLE"))
Which is what I think Jay was remembering seeing.
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