What does Addressof operator do?

Answer Posted / suresh

Any code you write to call a function pointer from Visual
Basic must be placed in a standard .BAS module ? you can't
put the code in a class module or attach it to a form. When
you call a declared function using the AddressOf keyword,
you should be aware of the following conditions:
? AddressOf can only be used immediately preceding an
argument in an argument list; that argument can be the name
of a user-defined sub, function, or property.
? The sub, function, or property you call with
AddressOf must be in the same project as the related
declarations and procedures.
? You can only use AddressOf with user-defined subs,
functions, or properties ? you cannot use it with external
functions declared with the Declare statement, or with
functions referenced from type libraries.
? You can pass a function pointer to an argument that
is typed As Any or As Long in a declared Sub, Function, or
user-defined type definition.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about trees structures work.

710


Types of LockEdits in RDO.

1792


Why API functions are Required?

1892


How can I speed up my VB database application?

1058


How do you make a TEXTBOX read only? Or, how do I prevent the user from changing the text in a TEXTBOX?

1036






what are the Types of cursors in RDO?

1956


___,_____ and ____ container objects.

1144


Difference between Linked Object and Embedded Object?

1881


Write the steps in Creating ActiveX Dll and Active Exe?

1648


what is use of book mark in excel ? send answer in my id ashishpal11@rediffmail.com

1846


Explain about creating VB applications in excel?

775


Explain Default cursor Type and LockEdit type in DAO?

790


With in the form we want to check all the text box control are typed or not? How?

1641


Can a VB application be an OLE server?

1056


How to control the file?

726