Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display value different format from stored value
Message
From
16/03/1999 16:06:49
 
 
To
16/03/1999 16:03:44
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00198149
Message ID:
00198323
Views:
17
>>>>Hi all!
>>>>
>>>>What's a good way to display a value differently then it's stored?
>>>>
>>>>For example: a time value
>>>>
>>>>Stored in the table as seconds: 4500
>>>>Displayed/entered as: HH:MM 01:15
>>>>
>>>>How would I bind the data to a control to accomplish this? Do I need two controls in a container, one to bind the value to a table and one to display/enter the value?
>>>>
>>>>TIA
>>>
>>>You need in one unbound textbox with Value property populated from/stored to data programmatically.
>>
>>That's the way I'm doing it now. I was just wondering if there was a better way to do this.
>>
>>The problem I have with this method, is that you have to remember to add the code to handle the programmatic update of the value. That's why I would like to use a bound control.
>
>It really depends :-). Personally, I don't use bound controls, so I have nothing to remember.

Yeah, I know what you mean. Sometimes you can become too dependant on the control doing everything for you. Then you almost don't know what to do when you have to do it the way it was done before it was done for us. (Did that make sense?) :)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform