I have the following:
type
TMatchesArray = array of integer;
var
daMatches : TMatchesArray;
vMatches : Variant;
I assign a value to vMatche which the debugger tells me is a Variant array of integer. Now I want to convert vMatches to daMatches and for this I can use the
DynArrayFromVariant(Pointer(daMatches), vMatches, TypeInfo(Variant));
However it blows up with an AV. Can anyone tell me what I am doing wrong here?
TIA
----------------------------------------------------------------------
Donovan J. Edye [www.edye.wattle.id.au]
Namadgi Systems [www.namsys.com.au]
Voice: +61 2 6285-3460
Fax: +61 2 6285-3459
TVisualBasic = Class(None);
Heard just before the 'Big Bang': "...Uh Oh...."
----------------------------------------------------------------------
GXExplorer [http://www.gxexplorer.org] Freeware Windows Explorer
replacement. Also includes freeware delphi windows explorer components.
----------------------------------------------------------------------
