If you examine tvardata( yourvar ).Vartype you can and it with (varArray + 
varVariant ) and non zero is ok.

Press the F1 key on tvardata to see all the vartypes as well as the 
definition of tVarData. Thats in Delphi 5 but I don't much changed in later 
Delphis, except you must add the variants units(iirc) in your uses clause.

David Bolton

----- Original Message ----- 
> Hello,
>
> A method I'm writing takes a variant as its argument, which MUST be a
> variant of varVariant. In other words, it must be created with
> VarArrayCreate([0, max], varVariant). How can I validate this? I haven't
> found a way yet to obtain the base type of a variant array yet. All I seem
> to be able to check is VarIsArray, but that only tells me the variant is 
> an
> array, but not what the base type is.
>
> Peter Laman
> Senior Software Engineer
> Lance ICT Group
> Roermond, the Netherlands
> http://www.lance-safety.com
__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to