Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vartype()
Message
From
29/07/2002 18:24:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
29/07/2002 18:10:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00683724
Message ID:
00683748
Views:
29
>>>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform