Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to do use 'Alias' ? Instead of put the table in Data
Message
De
11/03/2003 09:16:52
 
 
À
10/03/2003 22:22:17
Agnes Cheng
DynamicTech Consultants Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00764049
Message ID:
00764172
Vues:
20
I generally open the forms in the form's load event. Such as:

USE insured ALIAS insured ORDER TAG name IN 0
USE profiles ALIAS profiles ORDER TAG sysnum IN 0
SELE insured
SET RELATION TO insured.sysnum INTO profiles
GO TOP
DODEFAULT()

Then in the form's release (or unload) event I close all forms with something like:

DODEFAULT()
IF USED('customers')
USE IN customers
ENDIF

or

CLOSE TABLES

>In my old design, I put all the tables in the data environment.
>After 1 year, the form is loaded terribly slow .
>I found that the invoice's table size is over 20M and other around 6M
>Now, i need to remove all the tables and I don't know how to do .
>Some said i can open table as I need .
>However, I don't know How's the coding .(How can i open the table and close the tables?)
>Can anyone be kind to teach me ??
>Thx a lot
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform