Article ID: 112839
Article Last Modified on 12/3/2003
INDEX ON PADL(ALLTRIM(IDNUM),10,"0") TAG IDSORT
This command will create a tag call IDSORT that will shift all the
characters to the right as far as the length of the field.
SET ORDER TO TAG IDSORT
IDNUM order IDNUM order when table
on input is indexed on IDNUM
---------------------------------------
2 1
30 10
1 12
10 122
12 2
200 200
122 30
The numbers that begin with "1" will come first, then the numbers that
begin with "2", and so on because the index expression is evaluated based
on one character at a time rather than on the whole numeric expression.
Additional query words: VFoxWin FoxMac FoxDos FoxWin 1.02
Keywords: KB112839