| 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  |
| 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
 |
| 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.  |
| 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.  |
| 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.  |
| 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.  |
| 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  |
| Chandresh |
| |
| |
| Answer | it is an electronic spread sheet we use for
storing ,organizing and manipulating data  |
| 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  |
| Hitesh |
| |
| |
| Answer | message box for display the message,image box for display
image.  |
| Ashok [COLLEGE] |
| |
| |
| Answer | message box is used for diaplaying messages at the runtime
and imagebox is used for displaying images.  |
| Anusuya [COLLEGE] |
| |
| |
| Answer | message box is used for diaplaying messages at the runtime
and imagebox is used for displaying images  |
| 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....  |
| Guna Jenie [COLLEGE] |
| |
| |
| Answer | message box are only messages disply
image box are representing in that images
 |
| Manujas555 [COLLEGE] |
| |
| |
| Answer | message box are only messages disply
image box are representing in that images
 |
| 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.  |
| 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.  |
| 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.  |
| 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..  |
| 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.  |
| 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...  |
| Guna Jenie |
| |
| |
| Answer | Edit means edit some of the old data.
Update means update some old data as new data.
 |
| 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  |
| 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.  |
| Sridevi |
| |
| |
| Answer | no  |
| 1 |
| |
| |
| Answer | Not saved  |
| Rajeev |
| |
| |
| Answer | No it will not get saved  |
| Binu |
| |
| |
| Answer | no  |
| Rosemary |
| |
| |
| Answer | no it not saved  |
| Deepakduvedi |
| |
| |
| Answer | It will not save, it will show the last Checked In data.  |
| 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  |
| 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.  |
| 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.  |
| Jerald |
| |
| |
|
| |
|
Back to Questions Page |