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

___ VB constant make the menu item in centre.

1570


How do you change the icon and otherwise manipulate the DOS box?

1295


what are the Types of LockEdits in RDO?

1845


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

1637


How do I get my application on top?

1164


What are forms in visual basic?

787


How do I call a DLL?

1277


Explain what is Visual basic?

793


What is data control in vb?

776


what are the Differences between Recordset and Resultsets?

2298


___,___ and __ are difference between image and picture controls.

1332


What are the different procedures associated with the object?

820


What are the types of line styles available in Treeview Control?

1676


Types of LockEdits in DAO? 51 .Types of Recordsets.

1680


What is executenonquery in vb net?

741