Click here to Skip to main content
15,894,825 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how to select an item in a treeview via wm_notify message Pin
Dave Kreskowiak13-Apr-07 1:37
mveDave Kreskowiak13-Apr-07 1:37 
QuestionError sending mail using smtp Pin
A*****11-Apr-07 13:22
A*****11-Apr-07 13:22 
AnswerRe: Error sending mail using smtp Pin
Dave Kreskowiak11-Apr-07 14:35
mveDave Kreskowiak11-Apr-07 14:35 
AnswerRe: Error sending mail using smtp Pin
amaneet11-Apr-07 21:00
amaneet11-Apr-07 21:00 
AnswerRe: Error sending mail using smtp Pin
Dave Kreskowiak12-Apr-07 3:45
mveDave Kreskowiak12-Apr-07 3:45 
AnswerRe: Error sending mail using smtp Pin
A*****12-Apr-07 11:42
A*****12-Apr-07 11:42 
QuestionRather Frustrating Issue Pin
Diagathon11-Apr-07 7:38
Diagathon11-Apr-07 7:38 
AnswerRe: Rather Frustrating Issue Pin
Dave Kreskowiak11-Apr-07 7:44
mveDave Kreskowiak11-Apr-07 7:44 
Diagathon wrote:
The possible ranks a user can have are stored in an array ("RankTree()")


Why is this an Array? Why couldn't you use an Enum?

Diagathon wrote:
The Public Sub in the class is called Promote(Byval Position As String)

My problem is that I'm trying to make the sub find the index of the user's rank in RankTree


All you have to do is enumerate (For i=0 to ...) the string (I'm assuming they're strings!) in the array and check the current Position to each one in the array. When you find it, I contains the index. All you have to do is increment it.


This problem would probably be better suited for an Enum...


Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


AnswerRe: Rather Frustrating Issue Pin
Code_Doctor16-Apr-07 17:00
Code_Doctor16-Apr-07 17:00 
QuestionPrinting problem Pin
xjamiex9011-Apr-07 4:14
xjamiex9011-Apr-07 4:14 
AnswerRe: Printing problem Pin
Dave Kreskowiak11-Apr-07 6:26
mveDave Kreskowiak11-Apr-07 6:26 
GeneralRe: Printing problem Pin
xjamiex9011-Apr-07 6:30
xjamiex9011-Apr-07 6:30 
GeneralRe: Printing problem Pin
Dave Kreskowiak11-Apr-07 7:12
mveDave Kreskowiak11-Apr-07 7:12 
QuestionSudden form creation error after no code change Pin
lucjon11-Apr-07 3:17
lucjon11-Apr-07 3:17 
GeneralEdit Pin
lucjon11-Apr-07 3:29
lucjon11-Apr-07 3:29 
GeneralRe: Edit Pin
Dave Kreskowiak11-Apr-07 5:20
mveDave Kreskowiak11-Apr-07 5:20 
AnswerRe: Edit Pin
lucjon12-Apr-07 20:25
lucjon12-Apr-07 20:25 
QuestionAccess Database from Website In vb.net [modified] Pin
Kiran S. S.11-Apr-07 2:48
Kiran S. S.11-Apr-07 2:48 
AnswerRe: Access Database from Website In vb.net Pin
Dave Kreskowiak11-Apr-07 5:18
mveDave Kreskowiak11-Apr-07 5:18 
GeneralRe: Access Database from Website In vb.net Pin
Kiran S. S.11-Apr-07 18:13
Kiran S. S.11-Apr-07 18:13 
GeneralRe: Access Database from Website In vb.net Pin
Dave Kreskowiak12-Apr-07 3:42
mveDave Kreskowiak12-Apr-07 3:42 
GeneralRe: Access Database from Website In vb.net Pin
Kiran S. S.12-Apr-07 18:14
Kiran S. S.12-Apr-07 18:14 
Questionapi problem. Pin
amaneet11-Apr-07 2:34
amaneet11-Apr-07 2:34 
AnswerRe: api problem. Pin
Dave Kreskowiak11-Apr-07 5:14
mveDave Kreskowiak11-Apr-07 5:14 
QuestionHow to copy file from FTP folder Pin
virendra_00711-Apr-07 2:19
virendra_00711-Apr-07 2:19 

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.