M
Mr. X.
How can I pass a parameter to TypeConverter.convertToString, when aType is,
I.e., Color ?
If I declare
(When I.e the property that is searched is of type : color)
dim c as color
dim s as string
dim converter as typeConverter
.....
c = Red
s = converter.ConvertToString (c )
The above works !
but when I do :
dim c
c = color.red
s = converter.ConvertToString( c)
the above doesn't work !
I didn't find a way to pass the correct type to converter.ConvertString
I cannot declare a variable, which is known.
I have tried something like
c = tryCast(property.getValue(myControl, nothing), property.propertyType) '
this is not compiled !!!
Thanks
I.e., Color ?
If I declare
(When I.e the property that is searched is of type : color)
dim c as color
dim s as string
dim converter as typeConverter
.....
c = Red
s = converter.ConvertToString (c )
The above works !
but when I do :
dim c
c = color.red
s = converter.ConvertToString( c)
the above doesn't work !
I didn't find a way to pass the correct type to converter.ConvertString
I cannot declare a variable, which is known.
I have tried something like
c = tryCast(property.getValue(myControl, nothing), property.propertyType) '
this is not compiled !!!
Thanks