Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Order Tag on Numeric String!
Message
From
01/07/1999 08:01:11
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00235738
Message ID:
00236370
Views:
10
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform