o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Alphanumerical sorting of strings -

Hi all.

As you probably know, when you compare strings in VB, "2" is greater than "19".

Does anyone know of a function or a routine that would sort alphanumerically without this glitch?

Ex: if I compare "PB101" with "PB23", I want "PB101" to be greater than "PB23".

Thanks!

Alain

 

Alphanumerical sorting of strings -
Hi all. As you probably know, when you compare strings in VB, "2" is greater than "19". Does anyone know of a function or a routine that would sort alphanumerically without this glitch? Ex: if I compare "PB101" with "PB23", I want "


Sorting or Comparing Strings -
When Sorting strings in a listbox is there an easy way to make sure that it doesnt put "10" and "100" next to each other? When ever I set sorted to true I get things like this: "10" "100" "11" I can roll my own sort if I must but


Sorting an array of strings in asm -
Does anyone know how to sort an array of strings in asm? I have an array of 10 strings the strings can range any where from 0 to 20 char long. For example the array may contain: one two three four five six seven eight nine ten and that needs to be sorted. Can someone ple


Once again, sorting pb -
Hi all. I've searched the past threads about sorting and even though there are many existing resolved threads, none address my problem. So let me explain: Hi need to sort strings in an array. Nothing to fancy yet. But my problem is that some of the values I need to sort are ac


sorting comma delimited strings -
Ok If I have 2 strings : strA = "1,2,3" and strB = "3,2,1" and I compare them they obviously wont equal eachother. However in my logig because they both contain the same 3 numbers I want to be able to say well yes man they do equal eachother. This wo


No one can help in sorting data in MS Flex Grid -
I want to do sorting on single coulumn data in MsFlexgrid. I don't bother whether it is numeric,character or string . But by using sort property of MSFlex grid control all other columns having data got unordered means , my selected column is sorted but other coulumns get unordere


Want to do sort in MS Flex Grid -
I want to do sorting on single coulumn data in MsFlexgrid. I don't bother whether it is numeric,character or string . But by using sort property of MSFlex grid control all other columns having data got unordered means , my selected column is sorted but other coulumns get unordered.I


Sorting RTB 2nd array -
Sorting RTB, I have two columns of numbers. I am focusing on the 2nd column to be sorted but must be written as the bottom windows shows, in this particular sorted order. Alignment of the digits is not important to me, that I can solve it later, sorting is. From the list of “


recursive sorting -
I need help with some ideas about recursion please. I have been asked to create a football league program. someone said that because of the leagues, team positions, goal differences, scores etc they said that repeated sorting would be needed, like recursion. It is fairly easy to han


GridView Sorting -
Will the built in sorting for a GirdView work if the DataSource is a DataTable. And if so, how do I set it up? Or will I have to handle the sorting event myself and add my own code to sort the datatable?


Sorting numbers -
I'm wandering if someone can give me the pseaudo code for sorting a range of numbers.Easiest sorting method if possible.


Parsing VB Form Code -
Howdy all. I have a quick question, but, I suspect it'll be a lengthy answer. I was wondering the best way to parse a VB Form File. I know all the basics but to be honest doing something like parsing files like this has always stumped me. I'd appreciate any suggestions or ex


Natural Sorting in VB6 -
Is there a way to provide Natural Sort to a VB6 app instead of Asciibetical sorting? IE sorting 11 after 8 instead of before in an AlphaNumeric field?


Ideas for sorting strings containing characters and numerics -
I have an array of strings. The strings are a combo of numerics and alphas. Example strings: ASM100 ASM112 R1000 R1009 R1018 R1027 R237 R247 R250 R500 R501 R600 R801 R803 R820 R821 R822 R823 R900 R901 R902 R903 R909 R910 R911 R912 Using a simple bubble sort yields the results sh


[2005] DataGridView Column sorting -
I have a datagridview in which the header columns are not sorting when clicked on. I thought this control does this by default. Am I wrong? If so, what property needs to be set in order to allow for Column Sorting? Thanks,


Column sorting in ListView -
ello. i'm using a ListView control and i've pretty much got it sussed apart from the sorting bit. i've got the sorting working no problem, but in a lot of programs the sort buttons (columnHeaders) have these little embedded arrows on them indicating which way the column is sorted i


Best way to do ListView sorting -
I've been trying to figure out the Sorting for on the fly sorting by column. In a lot of programs you can just click the top of the list and boom it sorts first ascending, then descending if you click it again. My boss cannot live without this feature as she's been so used to Outlo


DataGridView Date Sort Problem -
Hi guys. Creating an application for system schedules. Problem is when it comes to sorting. When I FormatDateTime to DateFormat.ShortDate, the sorting is not correct. If the values are converted to CDate, the sorting works, but I have the trailing time after it. Anyway t


Sorting by value rather than alphabetically -
I have a listbox that contains strings and integers. The sort works fine for the columns containing strings, but when I sort the column containing integers it sorts it alphabetically. So it sorts it by the characters face value rather than the numerical value, like this... 1000 20


Sorting MsFlexGrid -
Hi! When using MsFlexGrid.Sort = 1 Only current column is re-arranged based on sorting conditions. I want to hold the rows together so that all cells in a row follows the sorted column. Just like when sorting a bunch o cells in Excel. Any tips are welcome!


Incorrect sort order -
In sorting an Access data base file on a text field using either an SQL ORDER BY statement or rst.SORT = "field ASC" (using VB6), I get the following sort sequence from a Debug.Print loop: Null, -, ?, +, A, B, C, Z If I sort the Access data base field using Access, the


Sorting on DATE columns in MS List View -
Does anybody know how to get this to work? The listview seems only capable of accepting strings as it's items so dates have to be converted to text and therefore are sorted as text. How can I get around this?


SORT : numeric and strings data in flexgrid -
Hi All, I have a flexgrid which will populate data from the database..there are a lot of column..some in numeric, some in alphanumeric.. for sorting, i want to do just like excel sorting..user click sort criteria 1, sort criteria 2, sort criteria 3..my problem is, when user selec


Sorting a MSFlexGrid -
I remember sorting a MSFlexgrid by this code... MSFlexGrid1.Sort = flexSortGenericAscending however this only make column 1 as the base for sorting... how can i make it sort using the other columns...thanks...


Sorting a MSFlexGrid -
I want to sort a MSFlexGrid by clicking on the the first (fixed) row. It works except when I click on the top row for the leftmost (fixed) column. In that case, the sorting is done according to the contents of the next (non-fixed) column to the right. In other words, the sorting shoul


sorting with listview control -
how can I sort a list using the second or third item in the listview for example number value --------- ------- I want to use value for sorting but I didn't find how could i do that. In visual basic we can choose a key for sorting. does C# includes a key like visual basic.


convert strings -
anyone know how to convert strings into integers? strings I meant not chars, I meants strings. #include <string.h>


Question re: Sorting Strings -
How can an array of 5 names be sorted alphabetically and then sent to a picturebox control? assume names(0) .. names(4) holds 5 names in any order


FileListBox - sorting -
Is it possible to stop a File List Box sorting its files alphabetically? Thanks in advance, Bob.


Problem with Listview Column Sorting (numbers not getting sorted properly) ... -
Hello! I'm trying to sort the data in a Listview that contains the list of Files/Folders along with their sizes in sub-item. I want to sort the listview content based on Size. However, I found that Listview control does not recognize the numeric data as Numbers and it treats it as S


Accessing and working on .c, .h files from VB -
Hi all, I need to find few strings in .c/.h files which are part of a VC++ workspace and replace those strings with my new strings. I've stored the "strings to be found in the files" in one column and "strings to be replaces in the files" in 2 adjacent columns


Sorting Recordsets -
Can anyone tell me the best way to sort a record collection ? I retrieve 16,000+ records and could do with sorting them to make things a bit quicker, but don't know the best way to do this.


removing quotes from strings ***RESOLVED*** -
Just a simple question, I have a list box with strings and numbers contained in it. some of the strings have quotes around them but the numbers do not. I was trying to think of the quickest and easiest way to remove the quotes from around the strings. It is made harder by the fact t


How can i sort a Listview Control -
hello everyone the listview control in visual basic can sort on any column simply. my problem is that it behaves like it is sorting strings. i cannot get it to correctly sort on numbers or dates. eg. it sorts numbers 1 to 23 like this.... 1 10 11 12 13 14 15 16 17 18 19 2 20 21 22 2


Datagridview - sorting columns with mixture of string and integer data -
Hi there I have a column where cells could contain either strings and integers, and whenever I sort the columns it errors. If every cell in the column contains just integers or just strings, the sort works fine. I am adding data to on the fly, and dependant on whether its a st


Listbox sorting -
Is there anyway to sort the listbox using a different sorting that it's default? Like instead of sorting A, B, C and so on, can I alter it to sort for example A, C, B...?


listview control sorting in details -
how can I sort a list using the second or third item in the listview (detailed) for example number value --------- ------- I want to use "value" for sorting but I didn't find how could i do that. In visual basic we can choose a key for sorting. does C# or vb.net in


broad - strings -
does anyone know of any site or anyone have a tutorial on strings ... like using left, mid, right, instr (i don't really know how to use them and don't know most of the commands to work with strings ...


xor strings -
i have a question in the program if i am xor 2 strings to get a third one.. is it necessary that both the strings should be of same length or do i need to do some padding if one string falls short


Flex grid Sorting -
Does some one know the code to give the functinality of sorting So. lets says user click on the cloumn header and thats sorts it in accending order. Any idead???