|
VB.Net is what developers use.
VB6 is what students in India appear to be using.
Most of the quesions relating to VB6 seem to come from the subcontinent.
VB6 is no longer supported, so use .net version.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
In one line, VB6 is 'unmanaged' code - VB.Net is 'managed' code.
Internally there are tons and tons of differences.
|
|
|
|
|
It's not quite what was posted as answers so far...
VB.NET is the term that used to be used for the .NET implementation of VB from its first version in 2002 up to VB8 (VS 2005) - Microsoft now just calls it either "VB" or "Visual Basic" (check Microsoft's web site or the 'About' screen for the product).
You can't be sure just from the term whether someone means the .NET version when they say "VB" or "Visual Basic" since both of these terms were used for VB6 and are now used for the latest VB.
David Anton
Convert between VB, C#, C++, & Java
www.tangiblesoftwaresolutions.com
|
|
|
|
|
The main difference is that Visual Basic 6 or earlier was terrible and VB.NET is the greatest thing since penicillin.
If you are considering learning one or the other go for .NET much better language IMO.
Personally I have seen the same code written in VB6 vs .NET and the .NET code is about half the lines of code to do the same thing.
Humble Programmer
|
|
|
|
|
If the 'Visual Basic' is the VB6 I know, then
The difference between VB6 and VB.NET is the way VB6, VB.NET pass the address
or memory space of your data when you call an external Function in a DLL.
1) VB.NET obey the rule passed by value (ByVal) and it will copy the entire
image of your data and pass the address into your external Function (in a DLL, etc).
2) VB6 does not do that. The proof of this is your Function can manipulate the
data (Often a ByVal String) and when the function return, the VB6 can see what
was changed with that space.
3) I like this VB6 behaviour for peace sake. Lately, I had a DLL use in VB6 and
ported it into VB.NET and It does not work the way I know it, only to find-out
I had to create another Function that accept a pointer to String address,
(char **) in C/C++, Or create a public structure and put all those String
variables that previously use as pass ByVal in VB6 application---lots of work,
but that what porting is about---to make your existing codes
work on another environment.
TMALBONPH
|
|
|
|
|
I have an MCQ based quiz built in VB 2008. I want this quiz to be played by other people on my website. How can this be done. I have Dreamweaver CS 3 for web.
|
|
|
|
|
Razanust wrote: How can this be done.
In a variety of ways, but I'd suggest using ASP.NET and XML. There's a CodeProject article here[^] to get you started.
I are Troll
|
|
|
|
|
I have written a WinApp that can be launched from AutoCad. If I run it with no parameters it works just fine displaying the dialog box. (path\test.exe)
If I add a parameter for a lookup table the launching app gets a hyperlink not found error. (path\test.exe 1234)
If I place a # in the path (path\test.exe#1234) the app runs but can not find the parameter 1234.
Is there something I need to add to my code to recognize the 1234 in the args string in the my WinApp?
Thanks...
|
|
|
|
|
MacIntyre wrote: Is there something I need to add to my code to recognize the 1234 in the args string in the my WinApp?
I don't have AutoCAD, so I can't verify my claims here.
path\test.exe 1234 That one doesn't seem to exist, as you stated, it tries to locate the file "text.exe 1234", which indeed doesn't exist. You could try to put the filename in quotes, like this;
"path\test.exe" 1234 That should be enough to make a distinction between the file (allowing AutoCAD to test for it's existence) and the parameter. It's not guaranteed to work; some programmers take the entire input-string and assume that it's a file that must exist.
MacIntyre wrote: f I place a # in the path (path\test.exe#1234) the app runs but can not find the parameter 1234.
There the target exists, but I guess that "#1234" has become part of the filename and no longer counts as a parameter. You could check whether args[0] contains both the filename and the parameter - if it does then you could perhaps work around the limitation by splitting the filename on the "#"-character.
Good luck
I are Troll
|
|
|
|
|
How would I get a program to show the numbers it adds up? Say the user wants the program to add numbers 1 through 10. How would I get the result to show up as "1+2+3+4+5+6+7+8+9+10=55"? I dont have a problem getting the program to add the numbers or anything. I just need help displaying the result, if it's any help I'll be using a loop. If I havent explained myself well enough let me know. Thanks
rawr!
|
|
|
|
|
you want the output to contain two things: a string representing the operands and operations, and the evaluation result.
Hence your loop should contain two things: a concatenation adding the latest operator and operand to the symbolic string, and an addition adding the addend to the partial sum.
|
|
|
|
|
Module Module1
Sub Main()
Dim txt As String = ""
Dim arr() As Double = {20, 11, 34, 25, 55, 89}
Dim tot As Double = 0
For i As Integer = 0 To 5
If i < 5 Then
txt &= arr(i).ToString("0")
txt &= "+"
tot += arr(i)
Else
txt &= arr(i)
txt &= "="
tot += arr(i)
txt &= tot.ToString("0")
End If
Next
Console.WriteLine("Output: {0}", txt)
Console.Read()
End Sub
End Module
I don't speak Idiot - please talk slowly and clearly
'This space for rent'
Driven to the arms of Heineken by the wife
|
|
|
|
|
We have a windows project in VB.NET 8 (2005) for a couple of years.
Now it just seems that the modules and code behind forms have a colon and a number after them in the tabs with the name. i.e. module was frmWebUpload.vb now shows in tab as frmWebUpload.vb:1 and frmWebUpload.vb:2
In addition, when editing these modules with the colon then the events and procuderes have empty in them. The normal modules would have a functional drop down.
Can anyone tell me why and how to fix it?
Thanks
|
|
|
|
|
I wonder if that is the designer and code files separated. There is a button at the top of the solution explorer that turns on or off show all files I think if you have this on the files will show as you are saying and not otherwise.
Humble Programmer
|
|
|
|
|
Hi guys,
I don't know if you already seen this video about Visual Studio 2010, but I think it's pretty useful meanwhile MSDN subscription arrive.
|
|
|
|
|
|
Probably best to have posted this in the appropriate forum.
|
|
|
|
|
Hi,
I want to disable users mailbox account from exchange server 2007 using vb.net
I have tried to add CDOEXM.dll but its not added..
thanks in advance
|
|
|
|
|
CDOEXM is not available for exchange 2007. It's now a separate download .[^]
Note that support for cdo is being phased out starting this month.
You should also grab hold of a copy of the exchange admin tools (probably for 32 bit) for exchange 2007, and install them on the system where the programs will be running... Your pc should be part of the same active directory domain as your exchange server.
I strongly suggest you use the new powershell interface for doing your stuff, as this will not work anymore on exchange 2010...
|
|
|
|
|
Hi All,
I have 600 rows entries in a SQL database column "Name".
At present I am looping through each row and searching for a text which should match the entries in "Name" column.
My code is like this:
For Each dr As DataRow In myDataSet.Tables(0).Rows
If Trim(dr(("Name"))) = Trim(search_text) Then
' matching found...
End If
Next
above, myDataSet contains the "Name" column data.
Now, the above code is very time consuming, because it has to loop entire 600 times...
What I am looking is any simple method, by which it direct jumps into the matched row and read the entries.
Can someone suggest me how to do this?
Regards,
R.S
|
|
|
|
|
|
Ever heard of the SQL 'LIKE' clause ?
|
|
|
|
|
The DataTable object has a .Select in which you can specify what would a WHERE portion of SQL and it will return an array of DataRows. This way you can pull a lot of data from a database just once, then filter it different ways quickly when you get it back. For your code above it would work something like this:
For Each row As DataRow In myDataSet.Tables(0).Select("Name='" & search_text & "'")
Next
|
|
|
|
|
Need some advice on which would be better!
1. creating a function that take a list(of sqlparameters)
<br />
Dim ParamList As New List(Of SqlParameter)<br />
<br />
Dim param As New SqlParameter("@SectionNo", SqlDbType.Int)<br />
param.Value = SectionNo<br />
<br />
ParamList.Add(param)<br />
or
2. Creating a data dictionary storing parameter name, type and value and then building up a sqlparametercollection e.g.
<br />
dim pc as sqlparametercollection<br />
pc = da.selectcommand.parameters<br />
for each entry in the datadictionary<br />
pc.add(paramName, Type, value)<br />
next<br />
reason for asking i need to created a stored proc that could have upto 100 parameters and am looking for speed and re-useability.
Many Thanks for your help and hope it makes sense
Simon
|
|
|
|
|
Simon_Whale wrote: i need to created a stored proc that could have upto 100 parameters
|
|
|
|