|
DaveyM69 wrote: Well enums are evaluated at compile time, so the VB compiler must or it wouldn't compile!
Maybe, maybe not. I am not sure. I do know they have to be constant expressions, however that might still defer evaluation till run-time. As an enum value, that would still be fine, since it needs to be done only once.
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.
|
|
|
|
|
You need to use "L"c etc if you have Option Strict on.
If you don't VB seems to cheerfully accept "L" as a char.
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
|
|
|
|
|
I'm extremely new to the programming scene. I have spent the past hour looking for code to programs just so I can get into the practice of trying to type BASIC code and then run-down errors I make. Been trying to follow the help files included with my version, and---it just doesn't seem to be clicking. In the process, I found out that perhaps maybe the version I downloaded isn't really Visual Basic at all, but perhaps some cheap-o Microsoft knock-off designed to look like real Visual BASIC. I dunno if I should've put this in the .NET framework section or this one. So don't bash me for that, because if that is the case (I have microsoft express Visual Basic 2008 version) then if you could provide a link to the real deal, that would be muchly appreciated. In addition, if anyone happens to know where I could just find code to type, of any kind, of any program that does anything, I would be even more grateful. Thank ya' kindly.
|
|
|
|
|
If you have got VB 2008 Express it's a real 'cheapo' edition since it costs nothing.
However if you want 'the real deal' you have to fork out for Visual Studio.
The Express editions are cut down versions of VS - the VB (or C#) languages in them are 'the real deal' it's just some of the bells and whistles in the IDE that are missing.
I suggest getting a book and working through it. Plenty of beginners books around good ones are usually those published by Apress and Wrox, but you could try the Sams 'VB in 24 Hours' (sorry don't have the exact details but you can find them on Amazon).
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
|
|
|
|
|
The Express tools are fine, I use them all the time.
If you want to spend a little time and money, go read this[^]. That would be a good investment.
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.
|
|
|
|
|
|
Heh. Well, what I meant by cheap-o knock-off isn't the price-tag (or lack thereof) it was more based on something I read during my search for code that it was just repackaged rehashed stuff. That was after I attempted to wade through the techno-jargon without getting lost. As for the books---I live in a rural part of Virginia, about 75 miles from bookstores that don't really carry anything besides how to grow tobacco and creating your first moonshine operation. Hence the appeal of just trying to find code on teh trusty intrawebz and typing it in myself, and seeing if that didn't shake a rusty bolt or two loose in the old noggin'. But failing this---there might be a way to persuade the local book-store to order something. He'll probably just see dollar signs the moment I mention "special order". Thank you all for your friendly tips and suggestions.
|
|
|
|
|
if you can't make it to a decent book store, there is always a virtual one. Try Amazon, it doesn't browse well, but it sure offers a wide choice of great books.
You are aware CodeProject hosts over 20,000 articles, and a reasonable fraction of those are interesting and good?
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.
|
|
|
|
|
You should also try to google for free vb.net books. There are a surprising amount of free (and perfectly legal) books that you can download, especially for beginners.
Another way to get you started, is to type "walkthrough" in the help/search section of your visual studio. It will provide a lot of step-by-step instructions on how to do all kinds of different things, and will give you some example code that you can copy and paste. That will give you something to start with, analyze and build upon.
My advice is free, and you may get what you paid for.
|
|
|
|
|
I need a nested GridView ctrl in vb or c#
not asp.net
bet i cant found it.
these ctrls are in asp.
please help me.
thanks
|
|
|
|
|
How to enable/disable network adapter in WinXP and Vista with VB.net code
|
|
|
|
|
Give it a new IPnumber?
Rozis
|
|
|
|
|
Without a damn good explanation to why you want to do this nobody will help you with this.
And even then it's very likely they won't.
Why? Because you should NEVER disable hardware on a pc. That's called a virus / malware and nobody here will help you with that.
|
|
|
|
|
I have friends that use NET in PPPoE protocol and sometimes they disable theire network adapter and call me with answer how to enable their network adapter. I understand how to enable and disable network adapter, I use devcon.exe download from here http://support.microsoft.com/kb/311272[^]
Thanks
|
|
|
|
|
|
No way is anyone going to do that. You can buy converteres, or you can put the code in a dll and just use it from there.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
For free; I don't think anyone would do that.
|
|
|
|
|
|
umm it should be pretty straight forward ....
just remember in C#
dim MyString as String = ""
=
string MyString = ""; <-- Dont Forget The ';'
if (...) then
...
else
...
end if
=
if (...){
...
}else{
...}
and so on ... any .NET programmer worth his salt should be able to do this.
If at first you don't succeed ... post it on The Code Project and Pray.
|
|
|
|
|
OK, this are bad news for me...
Does someone know a similar project in VB?
Last but not least: thankyou for your help.
|
|
|
|
|
Get .NET Reflector here: http://www.red-gate.com/products/reflector/[^]
Get file disassembler plugin for Reflector here: http://www.denisbauer.com/NETTools/FileDisassembler.aspx[^]
Then just disassemble compiled project into VB.
You'll get messy list of files but it will compile and will work, and you'll probably get what you need.
However - my main comment is - don't stuck on one language! Learn VB.NET and C#.
P.S. If you're asking someone to do your job every time - this means that you'll never get your own brains working.
------------------------------------------------------------
Want to be happy - do what you like!
|
|
|
|
|
Hello Every One
I am having one listview in that i am adding one column like
me.listview1.column.add("Rupees,50,Horizontal.centre")
now i fetch records from database in it
for filling listview and it worked
but the problem is i want to add the Rupees of listview and display it in one label
For that my code is like:
dim i as string
dim n as integer
dim t as integer =me.listview1.count
for i = to t-1
n=i+me.listview1.selecteditem(0).subitem(1).text
me.label1.text=n
but this seems to be wrong code can u please suggest
some another...
i am beginner
Please help...
|
|
|
|
|
1) you have ' dim i as string ' but are using 'i' in the for next loop. change to 'as integer'
2) is your intention to add up all the selected items? if so, you aren't doing that. you are adding the same value of the first selected item for as many rows that there are total.
3) The for next loop is declared as 'to listview1.count - 1' inorder to add up all the selecteditems, you need to change that to 'to listview1.selecteditems.count - 1'.
4) where's the word 'next' at the end of the loop
Dim Tot as integer = 0
For i as integer = 0 to listview1.selecteditems.count -1
Tot += cint(me.listview1.selecteditems(i).subitem(1).text)
Next
me.label1.text = Tot
Hope this helps...
Nathan
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
hello
Dim Tot as integer = 0
For i as integer = 0 to listview1.selecteditems.count -1
Tot += cint(me.listview1.selecteditems(i).subitem(1).text)
Next
me.label1.text = Tot
The code u suggested just gives me the one by one value of items present in listview
eg :i placed this code on listview double click event so it just give me value 1 when i double click on selected row and then 2 and goes on.
but i want the total of the items present in row and display it in label
for eg:suppose there are two listviews both are having columns as Rupees but the first one is having Rs in it like(100,200,300 etc..)
what i want is when i double click on any of row of first listview it adds the items preset in the selected row one by one and displays it in label
like (100+200+300) which gives result as 600 in label
simply saying i want total of text present in the listview
so please suggest if some have any idea.
Thank You.
|
|
|
|
|
I am trying to import csv files that have comma embedded within quotes. After trying to figure the regex pattern I ended up nowhere. Using Jet drivers is the last option I could go for. Could anyone provide some help on how to do this kind of importing.
Thanks in Advance.
|
|
|
|