REALGetVariantStructure

Greetings all & I hope everyone has had a great new year.

I want to use variants as parameter inputs for my plugin. I just need to know what type of variable has been passed. The Xojo documentation is somewhat ambiguous in the relation to the structure part of the code. Can any shed some light on this for me please?

[code]The easiest way to retrieve a structure from a variant is:

someStruct s = { 0 };
if (REALGetVariantStructure( someVariant, (void *)&s, sizeof( s ) )) {

}[/code]

Cheers
Grant

There doesn’t seem to be a way to get at the structure type name, which seems like a serious oversight.