Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use this in select - SQL
Message
De
30/03/2006 04:33:40
 
 
À
28/03/2006 04:42:02
Mk Sharma
Shrishti Solutions
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01108273
Message ID:
01109076
Vues:
25
Further to all the other good advice, just a note on your conventions. Always select the next highest work area, rather than a numbered or lettered area, i.e. not:

Select a
Use iGroup

but:

Select 0
Use iGroup

or shorter:

Use iGroup in 0

You can lose track of what areas you have used. Somewhere in a large system you're likely to accidentally select the same letter or number to open another table, thus releasing the table you already have open in that area.

Select 0 will always ensure you have a new, unused area.

The code:

>sele b
>use pcode1
>set order to pcode

could be replaced by:

Use pCode1 in 0 Order pCode

Terry

>mydate=ctod("01/01/2006")
>mydate1=ctod("28/02/2006")
>myigroup='BLUE '
>sele a
>use igroup
>set order to igroup
>sele b
>use pcode1
>set order to pcode
>set rela to igroup into igroup addi
>sele c
>use selsal
>inde on billno for sels='Y' to selbill
>IGCOND="PCODE1.IGROUP=MYIGROUP"
>
>use sales1
>set order to billdate
>set rela to billno into selsal addi
>set rela to pcode into pcode1 addi
>seek mydate
>copy to tsales1 for found("selsal") and &IGCOND WHILE BILLDATE<=MYDATE1
>SELE F
>USE TSALES1
>
>
>WARM REGARDS,
>MK.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform