Is there a way to detect what type of argument is being sent? I have four different user defined types and some of my functions work with all four. Instead of defining the function so it has to be called with a ton of commas (runfunction , , , data4) I would it to determine what the argument is on its own (runfunction data4).

I figure maybe a variant would work, but if that is the answer, how would I check to see which user defined type the variant holds?

Thanks.