Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To Call or not to Call

Status
Not open for further replies.

SteveMac32

Programmer
Jan 25, 2002
74
GB
When is it best to use Call or not. For example if you had a method below in one class

Public Sub LoadData(ByVal ID As Integer, ByVal Desc As String)

Now to call it from another class would you use
LoadData intID, strDesc
OR
Call LoadData(intID, strDesc)


both do the same so is one better than the other ???
 
A case of optional syntax which makes no difference.

Regards Hugh
 
If you are planning on moving to .Net then you will need to use the Call syntax (ie paramater list in brackets), but not use the word Call itself. In VB6 and VBA I never use it.

[vampire][bat]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top