What is the difference between procedure and functions in VB?
Answers were Sorted based on User's Feedback
Answer / nana
Procedure is a block of code that has no return type
Function is a block of code that has a return type
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ankit gupta
function return value
sub procedure do not return value
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / mohammed hasheem
A procedure is a collection of statements that perform a task.but A function is a collection of statement that perform a task and returns a value to vb statement that executed it
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sakthi
Procedure is like function with no return value
Function may /may not return some thing
Both may/may not accept parameters
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / supriya shringi
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 ? | 0 Yes | 1 No |
which property used to add a menus at runtime?
i want to retrive data from one spead sheet to another UI (workbook). control will search cell by cell for each row and load the data in another workbook(UI).
How can you determine performance standards?
What is the difference between modal and modaless form in VB?
What is ActiveX Control?
Which controls can not be placed in MDI ?
What is the different between Microsoft ODBC Driver and Oracle OBDC Driver?
What is meant by Establish Connection in RDO?
Can you tell me the properties of the controls?
How to find size of the file. Which method or function is used to occomplish this?
How can I create a VBX?
what is differece b/w Module and class Modules in vb6? thanks
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)