Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Userdefined objects and variant objects


Message #1 by "Philip.Ware" <Philip.Ware@e...> on Wed, 28 Jun 2000 12:06:06 +0100
Hi,

How can I pass a user-defined object through a variant object in VB 6.0?

Is this possible?

I want one command to return different types of user-defined objects e.g.

public sub Output_Result(byval Test_Name, testresult as variant)

	select case Test_Name
	case Test_1
		testresult = format_test_result_1()
	case Test_2
		testresult = format_test_result_2()
	end select

end sub

Thanks for your help,
Philip ware.

  Return to Index