D
Don
I have an array of System.type and I need to go through the array and
perform different logic depending on the type stored in the array.
I want to do:
if (typeof typeCollection(i) is String) then
'some logic
elseif (typeof typeCollection(i) is int32) then
'some logic
.....
The problem is the type of my object is always system.type. If I
toString it I get the text that represents the data type but I don't
really like string comparisions when I'm trying to determine type.
I am storing the type of data from a dataColumn in this array as
follows:
typeCollection.add(dataColumn.dataType())
I then add the array to the viewState so I can access the data after a
postback.
Thanks,
Don
perform different logic depending on the type stored in the array.
I want to do:
if (typeof typeCollection(i) is String) then
'some logic
elseif (typeof typeCollection(i) is int32) then
'some logic
.....
The problem is the type of my object is always system.type. If I
toString it I get the text that represents the data type but I don't
really like string comparisions when I'm trying to determine type.
I am storing the type of data from a dataColumn in this array as
follows:
typeCollection.add(dataColumn.dataType())
I then add the array to the viewState so I can access the data after a
postback.
Thanks,
Don