ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories >> Software >> Microsoft-Related >> Visual-Basic
 
 


 

Back to Questions Page
 
Question
what is the difference between vb and vb.net
Rank Answer Posted By  
 Question Submitted By :: Devaki
I also faced this Question!!   © ALL Interview .com
Answer
Vb is Procedural Language or Event Based Language
vb.net is Object Oriented Language
 
0
Aasma
 
 
Question
CRETE A BACKUP FILE
Rank Answer Posted By  
 Question Submitted By :: Charm_nirmal1988
This Interview Question Asked @   RRB
I also faced this Question!!   © ALL Interview .com
Answer
Open a project which have one text box name as 'txtbackup' &
one command button name as 'cmdBackup'. After that, put the
following code for Back up the file which is present in that
current folder with the name sample.mdb 



Dim obj As Object
Dim path As String
Dim j As Integer
Dim b As String
Dim a(100) As String
Dim i As Integer


If txtbackup <> "" Then
'******************************************
Dim c, c1 As String
i = 0
c = txtbackup.Text
For j = 1 To Len(c)
c1 = Mid(c, j, 1)
If c1 <> "\" Then
 a(i) = a(i) & c1
Else
 i = i + 1
End If
Next
'*******************************************

Set obj = CreateObject("Scripting.FileSystemObject")
path = txtbackup.Text
b = a(0)

'**** Folder Creation ****

Dim fso As New FileSystemObject
For j = 1 To i
 b = b & "\" & a(j)
 If Not fso.FolderExists(b) Then
  obj.CreateFolder (b)
 End If
Next

'**** File Creation ****

If Not fso.FileExists(path & "\sample_" & Format$(Date,
"dd_mm_yy") & ".mdb") Then
 obj.CopyFile "" & App.path & "\sample.mdb", "" & path &
"\sample_" & Format$(Date, "dd_mm_yy") & ".mdb"
 MsgBox "Data Base Successfuly Back Up in Loction :" & path
& " ", vbInformation, "Back Up"
Else
 If MsgBox("Data Base is already exists. Do u want to
replace it?", vbQuestion + vbYesNo, "Confirmation") = vbYes Then
  obj.CopyFile "" & App.path & "\sample.mdb", "" & path &
"\sample_" & Format$(Date, "dd_mm_yy") & ".mdb"
  MsgBox "Data Base Successfuly Back Up in Loction :" & path
& " ", vbInformation, "Back Up"
 End If
End If


Else
 MsgBox "Enter the Destination Path.....", vbExclamation
 
End If

txtbackup.Text = ""
txtbackup.SetFocus
End Sub

 
1
Haiipl25
 
 
Question
I belive VB6 is a powerful and matured tool that any other 
front end tool, why is it outdated? is it because of lack 
of awareness or because of difficult to use?
Rank Answer Posted By  
 Question Submitted By :: Joby Cheriyan
This Interview Question Asked @   HCL
I also faced this Question!!   © ALL Interview .com
Answer
1. There is no doubt that VB6 is a powerful and matured
tool, but as we all know in today's world people want
something which can perform both web & desktop applications
quickly and easily. This is one of the reason why developers
have moved from VB6 to say VB.NET.

2. If you think that OOPS concepts are the mother of all
modern programming language then VB6 misses out various
important OOPS concept and hence its outdated.

3. Developers at the miscrosoft have opted to shift to
VB.NET from VB and hence it is becoming outdated.

4 VB6 is not platform independent due to VB runtime. but
VB.NET is platform independent due to Dotnet's CLR.
 
0
Anand Shanbhag
 
 
 
Answer
1. There is no doubt that VB6 is a powerful and matured
tool, but as we all know in today's world people want
something which can perform both web & desktop applications
quickly and easily. This is one of the reason why developers
have moved from VB6 to say VB.NET.

2. If you think that OOPS concepts are the mother of all
modern programming language then VB6 misses out various
important OOPS concept and hence its outdated.

3. Developers at the miscrosoft have opted to shift to
VB.NET from VB and hence it is becoming outdated.

4 VB6 is not platform independent due to VB runtime. but
VB.NET is platform independent due to Dotnet's CLR.

The fourth point is wrong because as i know VB.Net is also 
platform dependent and second thing platform dependence and 
CLR are tatolly different things.

You may say fourth point as due to CLR you can work on a 
same project in more than one language which are supported 
by DotNet platform.
 
0
Saurabh Kumar Rao
 
 
Answer
>>VB.Net is also platform dependent and second thing platform dependence and CLR are tatolly different things.

I agree with you on one point that CLR is not the one which make .net platform independent. Its CIL/MSIL/IL that makes it Platform independent. This IL concept is absent in the VB6. Though there is something like p-code (portable code) but that doesn't make it platform independent. 

1) .Net framework like Mono on MAC OS make this VB.NET program executable on MAC OS X 10.5 Leopard platform!!!

2) With CIL/IL it is possible to create the machine level code depending upon the type of processor with the help of Jit compilers/Jitters. 
  
And hence because of these all reasons, i dare to say that VB.NET is platform independent and VB6 is not.
 
0
Anand Shanbhag
 
 
Answer
This is simple & easy to use.And i too belive vb6 is a
powerful and matured tool.Because of Lack of awareness of
vb6 most of us never used it.
 
0
Haiipl25
 
 
Question
wat is excel
Rank Answer Posted By  
 Question Submitted By :: Mannu
This Interview Question Asked @   Kingfisher
I also faced this Question!!   © ALL Interview .com
Answer
excel is spread sheet like data means we can add data in
tabular like format
 
0
Chandresh
 
 
Answer
it is an electronic spread sheet we use for 
storing ,organizing and manipulating data
 
0
Usha
 
 
Question
WHAT IS DIFFERENCE BETWEEN Message box and image box
Rank Answer Posted By  
 Question Submitted By :: Siddharthjain
I also faced this Question!!   © ALL Interview .com
Answer
Message box is used to display some text or datas.
imagebox is used to show some pics in it
 
0
Hitesh
 
 
Answer
message box for display the message,image box for display 
image.
 
0
Ashok
[COLLEGE]
 
 
Answer
message box is used for diaplaying messages at the runtime 
and imagebox is used for displaying images.
 
0
Anusuya
[COLLEGE]
 
 
Answer
message box is used for diaplaying messages at the runtime 
and imagebox is used for displaying images
 
0
Manish
[COLLEGE]
 
 
Answer
message box is used to insert and display the text and 
data,image box is used to insert and display the images....
 
0
Guna Jenie
[COLLEGE]
 
 
Answer
message box are only messages disply
image box are representing in that images
 
0
Manujas555
[COLLEGE]
 
 
Answer
message box are only messages disply
image box are representing in that images
 
0
Manujas555
[COLLEGE]
 
 
Answer
Message box is a function and it is used to display some
message.

And Image box is a component, which is used to display some
image.
 
0
Haiipl25
[COLLEGE]
 
 
Question
WHAT IS DIFFERENCE BETWEEN PROCEDURAL PROG. LANGUAGE & 
EVENT DRIVEN PROG. LANGUAGE?
Rank Answer Posted By  
 Question Submitted By :: Priyanka
I also faced this Question!!   © ALL Interview .com
Answer
In the event driven programming language use can directly 
interact with user interface by making use of mouse or any 
other means of controls. But in procedural prog you cannot 
interct with user interface through any of the control. you 
can only interct through codes.
 
1
Suketu Gandhi
 
 
Answer
Events are caused by actions the user performs. For 
example, clicking the mouse generates a mouse event, 
pressing a key on the keyboard generates a keyboard event, 
and so on. When a system event occurs, the operating system 
is responsible for identifying and responding to the event. 
Different operating systems implement this process in 
various ways. However, all operating systems respond to the 
system event by broadcasting a system event message. Any 
application running on the system can react to the system 
event by executing code written for that specific system 
event.

In procedural-driven or top-down architectures, the 
application executes a set of instructions in a specified 
sequence to perform a task. The structure and sequence of 
the program, not user actions, control the execution order 
of a procedural-driven application. The program execution 
begins in main and then flows through method calls and 
control statements in a fairly predictable manner.

In an event-driven program, the program first waits for 
events to occur, responds to those events, then returns to 
waiting for the next event. How the program responds 
depends on the code written for that specific event. The 
order in which an event-driven program executes depends on 
which events occur and on the order in which those events 
occur. While the program waits for the next event, it frees 
up CPU resources that might be used to perform other 
processing tasks.
 
2
Joy
 
 
Answer
Procedural Programming language is the language, which is
run by the some procedure or methods of that language.

Event Driven Programming language is the language, which is
run by some event of the input device. like mouse click,
mouse drag, keyboard key press, key down, etc..
 
0
Haiipl25
 
 
Question
what is different between edit and update?
Rank Answer Posted By  
 Question Submitted By :: Anand
This Interview Question Asked @   Wipro
I also faced this Question!!   © ALL Interview .com
Answer
Editing could be refered as the process of 
Entering/Changing Information in a client machine.
The information is explicitly available only in the client 
memory.
Updating could be refered as the process of getting the 
those changes Entered in a Database or File permanantly.
 
0
John
 
 
Answer
editing is the process of changing the data at the design 
time,and update is the process of changing the data at the 
runtime...
 
3
Guna Jenie
 
 
Answer
Edit means edit some of the old data.
Update means update some old data as new data.
 
0
Haiipl25
 
 
Answer
in edit u can change or add something extra in old data at 
design time while in updation u can replace the old data as 
new once at run time...........ok
 
0
Sonu Sharma
 
 
Question
In visual source safe if in middle of my program power was
off and it was not save then wat will happen whether it will
save or not? can any body tel me the answer for this.
Rank Answer Posted By  
 Question Submitted By :: Sushmitha
This Interview Question Asked @   Wipro , Wipro
I also faced this Question!!   © ALL Interview .com
Answer
No it will not save.
 
0
Sridevi
 
 
Answer
no
 
0
1
 
 
Answer
Not saved
 
0
Rajeev
 
 
Answer
No it will not get saved
 
0
Binu
 
 
Answer
no
 
0
Rosemary
 
 
Answer
no it not saved
 
0
Deepakduvedi
 
 
Answer
It will not save, it will show the last Checked In data.
 
0
Bhoopendra Pratap Singh
 
 
Question
what is differece b/w Module and class Modules in vb6?
thanks
Rank Answer Posted By  
 Question Submitted By :: Zeeshan
This Interview Question Asked @   TCS
I also faced this Question!!   © ALL Interview .com
Answer
standard module:

1)place for variable declarations,procedures etc.and we can 
access these procedures wherever needed in the project.

2)Available only for the existing modules where they are 
used.

class module:

1)Unlike standard module,members of class like object's 
properties,events can be accessed only whenever an instance 
of class is created.

2)We can make use of it whenever an object reference of the 
particular class is created for number of applications
 
0
Anonymous
 
 
Answer
Module
Code  in VB is stored in modules.
Thereare three kind of modules, Class modules, Form modules 
and Stendard modules.
In VB there are common codes we want to execute in several 
forms. We do not want to duplicate the code in all forms, 
we create a separate module containing the procedure that 
implements the common code. This separate module should be 
Standard module.

Class Module
Class modules (.CLS extension) are foundation of object 
oriented programming in VB. We can write code in class 
modules to create new objects. These new objects can 
include our own customiaed properties and methods, although 
custom objects can not have their own events.
We can also use the keyword, New to create multiple copies 
of our objects.
 
0
Kumari Santosh
 
 
Answer
class module
    It is a user defined datatype.
    It have datamembers(methods and variables).
    It can be accesed by creating the instance called 
object if the class is not static. If the class is static 
then it can be acessed using classname.datamember when 
datamember is public.
    Protected datamember can be accesed only by the first 
inherited class.
    Private datamember can be accesed only inside the main 
class.
 
0
Jerald
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com