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

What is instantiating?

1628


What are the properties of datacontrol?

1531


Explain about Caturing Baseline.

642


___ Property is used to count no. of items in a combobox.

967


How do I create controls dynamically (at run-time)?

966






Types of cursors in DAO?

1493


Can you create a tabletype of recordset in Jet connected ODBC dbengine.

1471


Is visual basic still used?

518


What is "Reserved Error -1209"?

1341


Is it possible to Manipulate data through flexgrid? Explain.

1562


How would you map properties to controls by using ActiveX Control Interface Wizard?

1413


What is visual basic used for?

557


Binary Access-method isused to access file in which manner?

1423


Explain about declaring variables in Visual basic?

538


It is possible to access Text (x.txt) files? Explain.

1554