Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox with R format
Message
 
 
À
07/07/2005 08:02:50
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01029824
Message ID:
01029971
Vues:
15
>>Hi everybody,
>>
>>I have a container based class called cntPhone, which consists of several textboxes. The first textbox has R format and (999) InputMask.
>>
>>I found a weird behavior. If I go to this textbox, then type something, then delete, what I typed and then try to Save my data, I get a warning, that this field could not be empty. However, if I do not enter this textbox, I do not have this warning. Why it behaves this way?
>>
>>Thanks in advance.
>
>Probably you're using buffering and it's a new record. empty() # isnull().
>Or your save routine is checking GetFldState().
>Doesn't it happen if you don't have R and inptmask? I've never used R.
>Cetin

Yes, the Save routine is using GetFldState(). I'm thinking, that GetFldState would report a change even if you type something, then reverted back to the original state. So, I'm now thinking that R has nothing to do with it.

I'm going to test different scenarios in a couple of minutes...

Thanks for IsNull tip. It might be the case here as well.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform