Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Max Value
Message
De
14/05/2002 13:05:48
 
 
À
14/05/2002 12:28:46
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00656234
Message ID:
00656271
Vues:
9
>I have a table that lists engineering drawings and their revisions. The list can have the same drawing number listed several times with different revision levels. I need to find the highest revision. This seems simple until you consider that a revision E is higher than an E2 because E2 was a temporary change that was incoporated into the E change. One more complication is when the drawing is revised behond revision Y(we din't use Z) the next revision is AA. So it dosen't seem a simple solution will work. Please Help!!

A stab at it would be to would to look at the ascii code for the revision. You could ignore numbers and only convert the character.
CHR('A') = 65
CHR('E') = 69

STR(CHR('A'))+STR(CHR('A')) = 6565
STR(CHR('A'))+STR(CHR('B')) = 6566
STR(CHR('B'))+STR(CHR('A')) = 6665

Something like this may work. The syntax is not 100% but you should get the idea.

HTH
Fred Lauckner

You know, it works on my computer. I don't know what your problem is.

.Net aint so bad.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform