Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Hi Alex,
I have had a similiar situation. If I'm not mistaken, you use the MM framework. Assuming that you are using the cTextBoxL class, you could do something like this in the valid of the textbox:
Before your code...
IF This.Parent.IsEmpty()
This.Value = DATE()
ENDIF
Then the rest of your code after.
I have also had an occasion to set a control to a default value. What I have done is in the form Init(), check to see if I am adding a new record or not (by checking the lAddMode property), and then if I am, setting the value of the control in question to the value I want. It seems to work OK.
HTH,
Brian
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement