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
How many File System Controls are there Explain?
Why API functions are Required?
VB ActiveX: Create a "drivelist"(D1) box, a "folderlistbox"(FLD1) that changes whenever D1 is changed , and a "FilelistBox"(FIL1) that is populated with the file lists under the selected directory in (D1).The file selected is stored in a variable "filename" along with the path. Question: How to use this activeX control in VC++ to get the selected filename?
what are the Types of LockEdits in RDO?
what is the Property used to add a menus at runtime?
How do I make the mouse cursor invisible/visible?
Can you tell me the properties of the controls?
I have several megabytes of memory. Why do I get an "out of memory" error?
Draw Sequence Modal of RDO and Explain?
When/Why should I use Option Explicit?
Is it possible to set a shortcut key for label?
Explain the working with task in Gantt chart view.
What is the-use of property page Wizard in ActiveX Control?
Is it possible to change menu runtime using API? If yes? Specify the function names.
What do you mean by Databound Controls Explain?