Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Order Tag on Numeric String!
Message
De
01/07/1999 08:01:11
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00235738
Message ID:
00236370
Vues:
12
>Justok,
>
>Try;
>
>PADL(ALLTRIM(Cust_no),7)



Thanks Jim and Mark.

Maybe there is another problem in customer data table..

there are some keys like "204DJ" which is some agent "204" but different final overseas customer....

so, the outcome for PADL(ALLTRIM(Cust_no),7) will be:

1
10
100
128
136
...
....
1000
128BJ
136KK

Now, I put simply: Val(Cust_No) will make 1000 at end of sort...

~_~ It seems the best way to fix this problem is to make a KeyTable file to carry the last adding key and sure fix when add record in forms...
but it still get problem is there are other method to add.. ~_~

although it still NOT a good method to do.. but hard to maintain if user has REAL WORLD problem and need to modify the Primary key to fulfill their problem..

~_~ to maintain system with unreasonable real world user.. is very hard.. >-<'
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform