Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display a date from a datetime?
Message
From
01/12/2004 10:20:30
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00965996
Message ID:
00966083
Views:
14
Hello Angie.

What are the UpdateValue and RefreshValue methods? Are they your own subclasses?

They are custom methods of my date textbox ( a textbox subclass ). I am sorry if I did not make that clear in my message.

If so, how should I implement them?

As I think I pointed out in my previous message,

Then I added a method called UpdateControlSource that is called from the control's Valid and UpdateValue that is called from its Refresh. Code like this in RefreshValue():
LOCAL ltValue

IF NOT EMPTY( This.cControlSource )
  ltValue = EVALUATE( This.cControlSource )

  *** Update the control's value from its cControlSource
  IF EMPTY( NVL( ltValue, {/:} ) )
   This.Value = {}
  ELSE
    IF VARTYPE( ltValue ) = 'T'
     This.Value = TTOD( ltValue )
    ELSE
      This.Value = ltValue
    ENDIF
  ENDIF
ELSE
  This.Value = {}
ENDIF
Obviously, the code the the UpdateControlSource method is the inverse of the method code I posted above. It must update the contents of the field referenced by the control's cControlSource property from its value.

Does that make it more clear?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform