Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ORDER of Cursor
Message
De
11/04/2008 07:36:40
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01309859
Message ID:
01309905
Vues:
8
You just stuck "Ramsay Hunt Syndrome" into the field name to see if I was going to read your post. <g>

>Using Sergey's idea of derived tables it would be something like:
>
>lnLength = 30
>lcString = PADR('Other', m.lnLength) + ;
>           PADR('Primary,m.lnLength) + ;
>           PADR(Secondary,m.lnLength) + ;
>           PADR(Teriary, m.lnLength) + ;
>           PADR('Workmans Compensation',m.lnLength) + ;
>           PADR('Auto',  m.lnLength)
>
>select * from ;
>(select substr(THIS.Strip(TRANSFORM(SUBSTR(m.lcString, at(Covr.CvPS, m.lcString), m.lnLength))) ;
>	AS IN1_22_00_Coord_of_Benefit_PriorityRamsay Hunt Syndrome, ;
>at(Covr.CvPS,"PSTAW") as selOrder from ... order by selOrder)
>
>This is untested - written from the head, may need some tweaking.
>
>BTW, are you sure you want to have custom method in the SQL? May be there is a simple expression for the first field?
>
>What do we want to do in case of Other with the order?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform