Link to home
Create AccountLog in
Avatar of sneeri_c
sneeri_c

asked on

Class Help

I have a class with the following:
     clsOrgs.Church
     clsOrgs Board

I have a string variable (strOrgType) that is passed to a form which tells it Church or Board.  In the form, I need to initialize a variable assigning to the proper class based on that string variable that is passed.  

How do I accomplish this statement:

clsOrgs.strOrgType OrgType = new clsOrgs.strOrgType()

Thanks


Avatar of surajguptha
surajguptha
Flag of United States of America image

Just curious what are you trying to do?
ASKER CERTIFIED SOLUTION
Avatar of surajguptha
surajguptha
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account