Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Field changing during Post event
Thu, Oct 31 2013 4:40 PMPermanent Link

marcioehrlich

I wrote a routine to format numbers -- zipcodes, cellphones etc. -- which I apply at some DbEdit.OnExit. Something like "DbEdit1.Text := FormatNumber(DbEdit1.Text)".

Everything looks perfectly fine: we really see, for instance, the ZipcCode correctly formatted as "99999-999" after returning from my routine.

But only until I click the button that calls the Query1.Post.

At this moment, the fields content shift to the right. My Zipcode field becomes " 99999-99". I can't understand why.

I swear there is no Query1.BeforePost that could be altering the fields.

What may be happening?

Marcio
Thu, Oct 31 2013 5:28 PMPermanent Link

marcioehrlich

Forget it. There problem was with the guy in front of the computer.
I tried to delete the post but that was not possible.
Sorry for the inconvenience.
M.
Image