Mega Code Archive

 
Categories / Delphi / Examples
 

Declaring a safearray in the type library editor

Question: How do I declare a SafeArray in the type library editor? Answer: You must specify the component type, for example "procedure MyProc(Items: TSafeArray(Integer));" specifies a SafeArray with a component type of Integer. See page 42-10 in the Developer's Guide for more info.