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

Is it posible to Create Tables Through Querydef?

1854


OLE is used for _______

1341


What is recordset in visual basic?

772


Difference between Linked Object and Embedded Object?

2019


Explain Default cursor Type and LockEdits type in RDO?

1683


How many ways we can access file using VB?

1938


What is the default workspace?

1723


Write the Steps in Creating an ActiveX Control?

1713


What is hyperlink?

1825


What is visual basic used for?

789


Why can't I use an index with my VB accessed database?

1217


What type of databases you can access through ADO Data Access Object?

1628


How to customize workgroup message?

823


What is the use of Data Form Wizard?

1773


Recordset object consists what?

1774