Click here to Skip to main content
15,914,642 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Simple Case statement problem Pin
Christian Graus2-Jun-07 13:17
protectorChristian Graus2-Jun-07 13:17 
GeneralRe: Simple Case statement problem Pin
Visual Very Basic2-Jun-07 13:48
Visual Very Basic2-Jun-07 13:48 
GeneralRe: Simple Case statement problem Pin
Dave Kreskowiak2-Jun-07 14:08
mveDave Kreskowiak2-Jun-07 14:08 
GeneralRe: Simple Case statement problem Pin
Visual Very Basic2-Jun-07 14:14
Visual Very Basic2-Jun-07 14:14 
GeneralRe: Simple Case statement problem Pin
Visual Very Basic2-Jun-07 14:31
Visual Very Basic2-Jun-07 14:31 
GeneralRe: Simple Case statement problem Pin
Dave Kreskowiak2-Jun-07 17:19
mveDave Kreskowiak2-Jun-07 17:19 
GeneralRe: Simple Case statement problem Pin
Visual Very Basic2-Jun-07 17:50
Visual Very Basic2-Jun-07 17:50 
GeneralRe: Simple Case statement problem Pin
Christian Graus2-Jun-07 18:56
protectorChristian Graus2-Jun-07 18:56 
idyot wrote:
So are u saying that I dont need to declare this as a variable and instead just use cmbPlanes.Text?


Yeah, I think Dave has this all covered, but...

The combo box contains the selected text. If all you want to do is know what the selected text is, there's no point moving it to another variable, but if yuo have a need to do that, you need to set the value of that variable, it won't set itself.


idyot wrote:
second....setting a breakpoint is beyond me at this stage..I have no idea how to do that.


OK, this is a major thing to know, this will help you a lot. If you put your cursor on a line of code and hit F9, a little dot will appear in the code. Assuming you're running in debug mode ( which is the default ), when you press F5 and the program runs, it will stop at this line of code. You will be able to see the watch window in the bottom area, in this you can type things like cmbPlanes, and you'll see the value of the variable, and if it has properties, you can browse them. You can even call methods in this box, and they will execute immediately, or type things like Airplanes = "Messerschmidt" and the value will change. This is an invaluable tool for working out what's going on inside your code, especially when you don't know why it's not working. You can just hover the mouse over a variable while the code is at a breakpoint and see it's value, so this would have told you, in this case, that Airplane was not being set to the selected text. You can also use the function keys or menu items in the debug menu to step through code, or set which code runs next, so you can really trace exactly what your code is doing, and how this affects the state of your application.

Hope that helps.

If you're remotely willing to consider C#, I can recommend some good books. Actually, even if you bought a book like 'Inside C#' and used it to learn some overall concepts, C# and VB.NET are basically the same, just different formatting.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

GeneralRe: Simple Case statement problem Pin
Visual Very Basic2-Jun-07 19:15
Visual Very Basic2-Jun-07 19:15 
GeneralRe: Simple Case statement problem Pin
Christian Graus2-Jun-07 19:32
protectorChristian Graus2-Jun-07 19:32 
GeneralRe: Simple Case statement problem Pin
Visual Very Basic2-Jun-07 22:03
Visual Very Basic2-Jun-07 22:03 
GeneralRe: Simple Case statement problem Pin
Christian Graus3-Jun-07 1:30
protectorChristian Graus3-Jun-07 1:30 
GeneralRe: Thanks for your advice and assistance Pin
Visual Very Basic3-Jun-07 21:24
Visual Very Basic3-Jun-07 21:24 
GeneralRe: Simple Case statement problem Pin
Dave Kreskowiak3-Jun-07 4:33
mveDave Kreskowiak3-Jun-07 4:33 
GeneralRe: Simple Case statement problem Pin
Paul Conrad3-Jun-07 5:13
professionalPaul Conrad3-Jun-07 5:13 
AnswerRe: Simple Case statement problem Pin
Dave Sexton3-Jun-07 3:27
Dave Sexton3-Jun-07 3:27 
QuestionFTP Pin
Sharma Nakul2-Jun-07 5:09
Sharma Nakul2-Jun-07 5:09 
AnswerRe: FTP Pin
Dave Kreskowiak3-Jun-07 4:17
mveDave Kreskowiak3-Jun-07 4:17 
GeneralRe: FTP Pin
Sharma Nakul3-Jun-07 22:43
Sharma Nakul3-Jun-07 22:43 
GeneralRe: FTP Pin
Dave Kreskowiak4-Jun-07 2:08
mveDave Kreskowiak4-Jun-07 2:08 
GeneralRe: FTP [modified] Pin
Sharma Nakul4-Jun-07 3:34
Sharma Nakul4-Jun-07 3:34 
GeneralRe: FTP Pin
Dave Kreskowiak4-Jun-07 13:27
mveDave Kreskowiak4-Jun-07 13:27 
QuestionNeed Help With Buttons and Panels Pin
LAPEC2-Jun-07 3:15
LAPEC2-Jun-07 3:15 
AnswerRe: Need Help With Buttons and Panels Pin
Dave Kreskowiak2-Jun-07 9:19
mveDave Kreskowiak2-Jun-07 9:19 
Questioncan i programatically enable the macro of word2003... Pin
koolprasad20032-Jun-07 2:24
professionalkoolprasad20032-Jun-07 2:24 

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.