Link to home
Create AccountLog in
Avatar of tatton777
tatton777Flag for United States of America

asked on

How do I decalre a new DataTable whose name is based on a string value

I had a string called zDefinedType, I want my DataTable to be able to dynamically name itself after the string.

PSEUDOCODE

string zDefinedType = "Generic";
DataTable textValueOf(zDefinedType) = New DataTable();

Any Ideas?
SOLUTION
Avatar of athapa
athapa

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Up to tatton777 really; I think both athapa and myself offer solutions, though we both needed more info if they weren't sufficient.

A.