Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display a date from a datetime?
Message
De
01/12/2004 10:20:30
 
 
À
01/12/2004 07:08:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00965996
Message ID:
00966083
Vues:
13
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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform