Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / February 2006

Tip: Looking for answers? Try searching our database.

Call call

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
news.onet.pl - 09 Feb 2006 15:34 GMT
Hello!

I have a small question concerning to the procedure call.
I have the following procedure:

private sub procedure_name (ByVal name1 as string)
...
end sub

When I call it I just write:
...
procedure_name("something")
....

When I add some extra parameters into the procedure that is:

private sub procedure_name (ByVal name1 as string, ByVal name2 as boolean)
...
end sub

then the procedure call would look like this:

call procedure_name("something",True)

Why???? Why there are some cases when word "call" is needed (because
excluding it, it will give us an error) and why it is not needed in the
other cases?

When do we have to use word "call" to call procedure or function?

Thank you for posts
M.
Lyle Fairfield - 09 Feb 2006 16:15 GMT
Why is the sky blue?

I never use call.
TTBOMK all procedures (subs and functions)
can be executed as
ProcedureName Parameter1, Parameter2, Parameter3 ...

Of course, one must use
FunctionName(Parameter1, Parameter2, Parameter3 ...) to get the value
of a function.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.