Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ascending or descending
Message
De
22/04/2006 05:28:01
 
 
À
22/04/2006 01:35:38
Suhas Hegde
Dental Surgeon
Sirsi, 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 6 SP5
Divers
Thread ID:
01115316
Message ID:
01115681
Vues:
9
>hi,
>It is for display in the grid to reverse the order . ANy better way u know off ?
>
>It would really help
>
>thanx
>
>suhashegde

Maybe not 100% bullet proof, but this function works for my needs
Function ShiftOrder && "Do shiftorder" or "Do Shiftorder with MytableAlias" to change direction
Lparameters lxAlias
Local lcCurrent
lcCurrent=Select()
If Pcount()>0
  lcAlias=Alias(lxAlias)
Else 
  lcAlias=Alias()
Endif 
If Empty(lcAlias)
  Return .F.
Else
  Select (lcAlias)
  If 'DESCENDING'$Set('order')
    Set Order To (Tag())
  Else 
    Set Order To (Tag()) Descending 
  Endif 
Endif 
Select (lcCurrent)
Return
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform