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 the use of progress Bar Control?

1491


What is the current version of Visual Basic for Windows?

1114


How many types of API functions are available in VB?

1883


How do I add a form in visual basic?

508


How can I call a 'hidden' DOS program from VB?

1014






What are the new events in textbox that has been included in VB ?

1338


Is the Access Engine and Visual Basic Pro good enough for database work?

984


Can you create a updatecascade, Deletecascade relation in Ms- Access? If no, give on eample.

1068


How would you attach pictures in column headers of List View Control?

1640


What is connection object in vb net?

581


How would you Create a Query Builder and Explain its uses

1436


What are the Internet tools available in VB6.0?

2079


What are 3 main differences between flexgrid control and dbgrid control?

1872


how to make unlimited id(1rimjim,2rimjim,3rimjim....etc) login grp chat pogram for jabber?

1973


DHTML Is used for what?

1404