CrGlobal: FunctionAddressEvaluate

FunctionAddressEvaluate

kludge for the AddressOf design bug

 Public Function FunctionAddressEvaluate(
	  ByVal AddressOfFunction As Long ) As Long

Parameters

AddressOfFunction
[ByVal] Long. arbitrary long integer (address of the function)

Return Values

Long -  untouched AddressOfFunction value

Remarks

This is a kludgy workaround for the M$VB flaw which disallows one to do this:

VariableX = AddressOf FunctionX

This procedure can be used to store a functions address in a variable.

See Also

Project crgenlib Overview Class CrGlobal Overview CrGlobal Properties CrGlobal Methods CrVersionNew FunctionCallByAddress