>>>Hi All,
>>>Is it possible to change the type of a text box programmatically?
>>>Thanks,
>>
>>Just assign something to the Value property.
>>
>>For instance, if you need a date:
This.Value = {}>>
>>HTH, Hilmar.
>
>Hilmar,
>Yeah, that's what I did, I was just thinking there may have been something I hadn't heard of. Sometimes I do things and then find out that there is a better way and wish I had known about it.
Well, I know of no special property to specify the type of a variable, or of a property. Properties where several types are allowed (including .Value) just have to to be assigned a field, constant, etc., of the desired type.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)