create object with string parametert
-
Hi folk, I have my form class with the public sub openformmodify(BYVal form_modify_Objname as string) The problem is if the name of the object is product generally I must crate the object: dim form as product = new product But I want that the name of the class must be pass as string and the object must be create by the string value es.: public sub openformmodify(BYVal form_modify_Objname as string) dim form as (form_modify_Objname)?? = new (form_modify_Objname)?? End sub ?? How can make this?
-
Hi folk, I have my form class with the public sub openformmodify(BYVal form_modify_Objname as string) The problem is if the name of the object is product generally I must crate the object: dim form as product = new product But I want that the name of the class must be pass as string and the object must be create by the string value es.: public sub openformmodify(BYVal form_modify_Objname as string) dim form as (form_modify_Objname)?? = new (form_modify_Objname)?? End sub ?? How can make this?