Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index on Month
Message
 
À
14/08/1998 16:15:39
Zaraq Bari
Bari Studios Limited
Lahore, Pakistan
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00127022
Message ID:
00127108
Vues:
29
>I have set a character field named Month with a regular index to store name of the months.When I use SET ORDER TO MONTH it indexes the field Month alphabetically as it is supposed to.How can I make it index on January , Feburary , March and so on instead of April, August, December etc....
>Thank You All
>Zaraq Bari

There is no function that will take the name of a month and return the month number as CMONTH() will do for a date. There are two, as I see it, choices.

Either build the table so that the record number corresponds to the number of the month, or create a dummy date field to index on using the MONTH() function. If the latter is chosen, simply fill it with any date for the desired month.

hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform