What does Addressof operator do?



What does Addressof operator do?..

Answer / 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

More Visual Basic Interview Questions

How would you create your application in DHTML?

0 Answers  


Does VB support object-oriented concepts? Explain..

3 Answers  


What is ActiveX Explain?

2 Answers   SDS,


Which method is used to write context Into file?

0 Answers  


What are the Differenct Types of Instancing Property in ActiveX Dll and Exe?

0 Answers   Wipro,






What is the max size of textbox?

2 Answers  


How many MDI(multiple document interface) forms can include in one project(especially in visual basic)?

6 Answers   Satyam, VSS,


Record set types and Number available in Visual Basic?

1 Answers  


What is database vb?

0 Answers  


What is ADO? What are its objects ?

1 Answers  


Difference between Recordset and Resultsets.

0 Answers  


which arguments will be used to run a executable program in shell function ?

1 Answers  


Categories