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

What is snapshot in vb?

0 Answers  


What are the different types of errors in visual Basic?

8 Answers   ABC,


Is VB comes under Object Oriented Programming ?

1 Answers  


How can you save and Get data from Clipboard?

1 Answers  


____ is the difference between Listindex and Tab index.

0 Answers  






What is the use of Visual Basic Document file?

0 Answers  


what are the types of LockEdits in DAO?

0 Answers  


what is the Code for DSN Less Connection?

1 Answers  


How to down load image properties.

0 Answers  


What is the need of zorder method?

1 Answers  


What is the use of Connection object?

2 Answers  


What is the purpose of the ClipControls property on a form or container?

1 Answers  


Categories