![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In a bill of materials table I have references like C1, C2 ... C10, C11..C100 etc. Sorting the ref. field looks like this C1 C10 C100 C11 .. C19 C2 C20 C21 .. How to make it C1, C2 ... C9, C10 .... ? This order is the correct alphabetical order. Fault is the person who |
#3
| |||
| |||
|
|
How to make it C1, C2 ... C9, C10 .... ? This order is the correct alphabetical order. Fault is the person who introduced the codes C1, C10, C100 instead of C001, C010, C100. Yes I agree, if we look at it from a database programmers view. But in |
|
You remove the C and take the numeric value of the rest: SortField=val(mid$(RefField,2)) This value will sort the way you expect. Yes, think I must do that to generate the lists and maybe afterwards remove |
#4
| |||
| |||
|
|
How to make it C1, C2 ... C9, C10 .... ? This order is the correct alphabetical order. Fault is the person who introduced the codes C1, C10, C100 instead of C001, C010, C100. Yes I agree, if we look at it from a database programmers view. But in electronic schematics, normally you don't assign component ref's C001 etc. So output from schematic is C1, C2..C10 etc. And bill of material list for production don't look like this (at least I have not seen that): 0805 capacitor C002-C008, C020, C100 or am I mistaken? You remove the C and take the numeric value of the rest: SortField=val(mid$(RefField,2)) This value will sort the way you expect. Yes, think I must do that to generate the lists and maybe afterwards remove the extra zeroes in production material. Best regards Lars P. Magnussen What I did is to create a user-defined function that breaks the |
#5
| |||
| |||
|
|
In a bill of materials table I have references like C1, C2 ... C10, C11..C100 etc. Sorting the ref. field looks like this C1 C10 C100 C11 .. C19 C2 C20 C21 .. How to make it C1, C2 ... C9, C10 .... ? Best regards Lars P. Magnussen |
#6
| |||
| |||
|
|
Yes, think I must do that to generate the lists and maybe afterwards remove the extra zeroes in production material. |
![]() |
| Thread Tools | |
| Display Modes | |
| |