Click here to Skip to main content
15,891,943 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Default return value? Pin
Luc Pattyn29-Nov-09 0:16
sitebuilderLuc Pattyn29-Nov-09 0:16 
AnswerRe: Default return value? Pin
Shameel29-Nov-09 23:20
professionalShameel29-Nov-09 23:20 
AnswerRe: Default return value? Pin
Tom Deketelaere30-Nov-09 1:47
professionalTom Deketelaere30-Nov-09 1:47 
QuestionVBA on Excel Query Pin
Dalek Dave27-Nov-09 4:54
professionalDalek Dave27-Nov-09 4:54 
AnswerRe: VBA on Excel Query Pin
EliottA27-Nov-09 5:14
EliottA27-Nov-09 5:14 
GeneralRe: VBA on Excel Query Pin
Dalek Dave27-Nov-09 5:18
professionalDalek Dave27-Nov-09 5:18 
QuestionArraylist.Index(Object) help please. [modified] Pin
Geoff_300126-Nov-09 23:23
Geoff_300126-Nov-09 23:23 
AnswerRe: Arraylist.Index(Object) help please. Pin
Luc Pattyn27-Nov-09 0:18
sitebuilderLuc Pattyn27-Nov-09 0:18 
Hi,

You create 5 instances of Plateobj and add 3 of them to the list.
when you reach the first MessageBox.Show statetement, the list contains: Geoff, Dan, Paul.
Nothing changes afterwards, as you don't add the later Plateobj objects.
So the output should be: 2, -1, -1

BTW: I suggest you improve your naming conventions; normally variables use lower-case (plate), and class names don't include "class" or "obj" or such.

FWIW: the list order is independent of the Order member inside Plateobj (until you come up with some code to sort the list based on the Order member of course).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


AnswerRe: Arraylist.Index(Object) help please. Pin
The Man from U.N.C.L.E.27-Nov-09 0:38
The Man from U.N.C.L.E.27-Nov-09 0:38 
GeneralRe: Arraylist.Index(Object) help please. Pin
Geoff_300127-Nov-09 1:21
Geoff_300127-Nov-09 1:21 
Questionget and compare ascii code in vb.Net Pin
negar karimi26-Nov-09 22:46
negar karimi26-Nov-09 22:46 
AnswerRe: get and compare ascii code in vb.Net Pin
dan!sh 26-Nov-09 23:14
professional dan!sh 26-Nov-09 23:14 
GeneralRe: get and compare ascii code in vb.Net Pin
negar karimi27-Nov-09 21:09
negar karimi27-Nov-09 21:09 
GeneralRe: get and compare ascii code in vb.Net Pin
dan!sh 28-Nov-09 6:09
professional dan!sh 28-Nov-09 6:09 
AnswerRe: get and compare ascii code in vb.Net Pin
Shameel26-Nov-09 23:14
professionalShameel26-Nov-09 23:14 
AnswerRe: get and compare ascii code in vb.Net Pin
Luc Pattyn27-Nov-09 0:24
sitebuilderLuc Pattyn27-Nov-09 0:24 
QuestionArrange database Column entries by ascending order. Pin
jeshra27926-Nov-09 19:19
jeshra27926-Nov-09 19:19 
AnswerRe: Arrange database Column entries by ascending order. Pin
dan!sh 26-Nov-09 19:30
professional dan!sh 26-Nov-09 19:30 
AnswerRe: Arrange database Column entries by ascending order. Pin
Shameel26-Nov-09 19:46
professionalShameel26-Nov-09 19:46 
AnswerRe: Arrange database Column entries by ascending order. Pin
Vimalsoft(Pty) Ltd26-Nov-09 22:20
professionalVimalsoft(Pty) Ltd26-Nov-09 22:20 
Question[VB6] On Change Event issues Pin
Blake Dickson26-Nov-09 18:52
Blake Dickson26-Nov-09 18:52 
AnswerRe: [VB6] On Change Event issues Pin
Shameel26-Nov-09 19:50
professionalShameel26-Nov-09 19:50 
AnswerRe: [VB6] On Change Event issues Pin
Vimalsoft(Pty) Ltd26-Nov-09 22:09
professionalVimalsoft(Pty) Ltd26-Nov-09 22:09 
QuestionSelecting MAX value from a Database column. Pin
jeshra27926-Nov-09 18:35
jeshra27926-Nov-09 18:35 
AnswerRe: Selecting MAX value from a Database column. Pin
dan!sh 26-Nov-09 19:15
professional dan!sh 26-Nov-09 19:15 

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.