Solved

How to create New Method ?

Posted on 2000-03-16
4
156 Views
Last Modified: 2010-05-02
Experts,
Which one is the correct answer for below mentioned question ?

Which of the following, statements will create a new method on Form1 that could be called outside of Form1's code module ?

1)Public NewMethod() as New Method
2)Public Sub NewMethod()
3)Public Method NewMethod()
4)Public ?NewMethod()

Thanks,
bhavesh
0
Comment
Question by:bhavesh55
4 Comments
 
LVL 3

Accepted Solution

by:
paulstamp earned 5 total points
ID: 2625093
Number 2 - there is no such keyword as method !
0
 

Author Comment

by:bhavesh55
ID: 2625168
2)Public sub NewMethod()
4)Public NewMethod()

Which one is true either 2 or 4 ?

thanks,
bhavesh
0
 
LVL 1

Expert Comment

by:NancyShah
ID: 2625220
The correct answer is 2
0
 
LVL 14

Expert Comment

by:wsh2
ID: 2625464
Ahhh.. finally a TWO/False question.. <flipping a coin>.. I'll go with Paulstamp !!!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now