Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Navigating Through Records
Message
From
08/10/2002 09:05:33
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00708510
Message ID:
00708710
Views:
12
>Hi,
>
><<
>I need help with navigation. I have a table which has part numbers entered in random order the part numbers are like such. 117124,117124-001,117124-003,117125,117126,117126-001. When I use navigation on my form I need some method to make sure I get the part numbers with dashes to show up. Right now it will go 117124,117125,117126 etc.
><<
>
>Maybe:
>
>
>INDEX ON PADR(ALLT(CHRTRAN(Partno,"-","")),LEN(Partno),"0") Tag PartOrder
>
>

Or, simpler:
INDEX ON VAL(STRTRAN(Partno,'-','.') Tag PartNumOrder
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform