What is the difference between procedure and functions in VB?

Answer Posted / ramani ghanshyam p

What is deffrent between Procedure and Fuction ?
ans.1 A procedure is a set of code that does the work but
does
not return a value whereas a function accepts
parameters
and does the calculation and does return a value
back.

Funcion returns the value and proocedeur does not
return
the value
1.Procedure accept input output parameter But
function
accept only input parameter.
2. Function return the value but procuder not
return the
value.
3.Some Condition procedure return the value like
text,
ntext,timestemp data type value but function not
return
text,ntext,timestemp value
Procedure is a bundle of code it does not have
return type
Function Have return type and take only input
Parameater
procedure is block of statement that doesnot return
value,function is accept parameters and return
output

Is This Answer Correct ?    41 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you make a TEXTBOX read only? Or, how do I prevent the user from changing the text in a TEXTBOX?

950


What is executenonquery in vb net?

517


Through which protocol OLEDB components are interfaced?

1717


____ is the difference between Listindex and Tab index.

1316


DHTML Is used for what?

1419






How can you Implement windows functionality in VB?

1700


What are the Internet tools available in VB 6.0?

2403


Write the steps in Creating ActiveX Dll and Active Exe?

1713


How to find size of the file. Which method or function is used to occomplish this?

1501


Which property of textbox cannot be changed at runtime. What is the max size of textbox?

574


What type of databases you can access through ADO Data Access Object?

1426


What is the use of progress Bar Control?

1511


Where can I get good up-to-date information about VB?

916


How do I get the Tab key to be treated like a normal character?

1008


How do I make an animated icon for my program?

951