Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enforcing valid date into textbox
Message
 
À
05/03/2007 11:39:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01200381
Message ID:
01200806
Vues:
44
>>>>>>>>How do I enforce a valid date on a textbox. The textbox is defined as char at the moment and in the init= thisform.textbox1.value=DATE() and
>>>>>>>>thisform.textbox1.Format='D' . However, I can enter bogus dates.
>>>>>>>
>>>>>>>If Value is date type then you cannot enter bogus values. Make sure you don't override value back to character. To find it easier remove 'D' format.
>>>>>>
>>>>>>Ed, how do I make the VFP message appear on a form as a popup? This is for when the user enters a bogus date in the field. I am trying to go this route:
>>>>>>
>>>>>>SET MESSAGE TO [cMessageText]-or-SET MESSAGE TO [nRow [LEFT | CENTER
>>>>>> | RIGHT]]-or-SET MESSAGE WINDOW [WindowName]
>>>>>>
>>>>>>but no message appears.
>>>>>
>>>>>If SET NOTIFY ON then you get standard message "Invalid Date" right away.
>>>>
>>>>Actually, it is set to ON, but since my form takes up the whole screen and , of course, the status bar is off for 'professionalism look", the "INVALID DATE (press space) is not visible to the user.
>>>
>>>By default, the message is shown in 'Wait ... Window' window in the top-right corner of the screen.
>>
>>That is odd, no message appears. Perhaps some setting is amiss?
>
>Are you sure that you have?
>SET NOTIFY ON

I was sure but since discovered that status was still on, although not visible. Now the message appears :) It's not too conspicuous however, can it be beefed up or centered?
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform