Click here to Skip to main content
15,886,810 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow to add sql statement in databinding?, vb 2005 Pin
wongth75-Jul-09 20:23
wongth75-Jul-09 20:23 
Questionproblem with delete button ..vb 2005 Pin
wongth75-Jul-09 20:17
wongth75-Jul-09 20:17 
QuestionPrint Out Problem in Billing system??? Pin
JC.KaNNaN5-Jul-09 19:32
JC.KaNNaN5-Jul-09 19:32 
AnswerRe: Print Out Problem in Billing system??? Pin
EliottA6-Jul-09 2:53
EliottA6-Jul-09 2:53 
QuestionWrite to a word doc which is already open. Pin
Musa Biralo5-Jul-09 16:47
Musa Biralo5-Jul-09 16:47 
AnswerRe: Write to a word doc which is already open. Pin
Christian Graus5-Jul-09 17:03
protectorChristian Graus5-Jul-09 17:03 
QuestionSorting a structure array Pin
Jacob Dixon5-Jul-09 11:53
Jacob Dixon5-Jul-09 11:53 
AnswerRe: Sorting a structure array Pin
Luc Pattyn5-Jul-09 12:40
sitebuilderLuc Pattyn5-Jul-09 12:40 
Hi,

I don't know what happened here, you started explaining a nice structure (Translate) holding three strings, one for each language; later on I don't see that structure used anywhere, instead a lot of code I did not understand at first glance, anyway too much to get the required things done.

Collection classes have Sort methods: Array has a static Sort, most Lists and Dictionaries have an instance Sort() method; they all take an optional IComparer<Translate>, and that is what you need: a Compare method that understands your structure, takes the right language string, and compares two of them.

For three languages, that would mean three comparers, each of them holding some 5 lines of code (which I am not venturing to write down here as my Basic isn't very fluent, and some has to be left for you too).

BTW: I don't like your structure''s name, a structure holds data, so it is (almost) an object, don't call it a verb then. Maybe MultilingualTerm would fit.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: Sorting a structure array Pin
Jacob Dixon5-Jul-09 12:44
Jacob Dixon5-Jul-09 12:44 
AnswerRe: Sorting a structure array Pin
Gideon Engelberth5-Jul-09 12:44
Gideon Engelberth5-Jul-09 12:44 
GeneralRe: Sorting a structure array Pin
Jacob Dixon5-Jul-09 13:52
Jacob Dixon5-Jul-09 13:52 
GeneralRe: Sorting a structure array Pin
Gideon Engelberth5-Jul-09 15:56
Gideon Engelberth5-Jul-09 15:56 
GeneralRe: Sorting a structure array Pin
Jacob Dixon5-Jul-09 15:59
Jacob Dixon5-Jul-09 15:59 
GeneralRe: Sorting a structure array Pin
Luc Pattyn6-Jul-09 0:46
sitebuilderLuc Pattyn6-Jul-09 0:46 
QuestionDrag&Drop problem Pin
The real $M@5-Jul-09 0:17
The real $M@5-Jul-09 0:17 
AnswerRe: Drag&Drop problem Pin
Mycroft Holmes5-Jul-09 2:14
professionalMycroft Holmes5-Jul-09 2:14 
GeneralRe: Drag&Drop problem Pin
Henry Minute5-Jul-09 4:18
Henry Minute5-Jul-09 4:18 
GeneralRe: Drag&Drop problem Pin
Mycroft Holmes5-Jul-09 14:10
professionalMycroft Holmes5-Jul-09 14:10 
AnswerRe: Drag&Drop problem Pin
Alan N5-Jul-09 4:05
Alan N5-Jul-09 4:05 
GeneralRe: Drag&Drop problem Pin
The real $M@5-Jul-09 22:04
The real $M@5-Jul-09 22:04 
QuestionAccess Database Path using vb.net[modified] Pin
mirzamujib4-Jul-09 23:09
mirzamujib4-Jul-09 23:09 
AnswerRe: Access Database Path using vb.ne Pin
dan!sh 5-Jul-09 2:30
professional dan!sh 5-Jul-09 2:30 
GeneralRe: Access Database Path using vb.ne Pin
mirzamujib5-Jul-09 3:58
mirzamujib5-Jul-09 3:58 
GeneralRe: Access Database Path using vb.ne Pin
dan!sh 5-Jul-09 5:19
professional dan!sh 5-Jul-09 5:19 
GeneralRe: Access Database Path using vb.ne Pin
JC.KaNNaN5-Jul-09 19:36
JC.KaNNaN5-Jul-09 19:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.