[Openroad-users] BufferText
Simon Lovell
simonl at unwired.com.au
Wed Feb 6 08:13:58 EST 2008
What about the KeyPress event? Would that be any better?
Greenstein, Stacey - ES/EW wrote:
> I believe that KEYDOWN fires before the character is added to or
> removed from the buffertext. You could check what key was pressed and
> add 1 if the key wasn't backspace or delete, and subtract 2 if
> backspace or delete was pressed. Too bad there is no KEYUP event,
> which is what you really want... an event that fires after the buffer
> is changed.
>
> *Stacey Greenstein
> *Member of Technical Staff
> ITT Electronic Systems
> Electronic Warfare Systems
> MS 63850
> 77 River Road
> Clifton NJ 07014-2099
> Phone: (973) 284-2707
> Fax: (973) 284-3947
> stacey.greenstein at itt.com
>
>
> ------------------------------------------------------------------------
> *From:* openroad-users-bounces at peerlessit.com
> [mailto:openroad-users-bounces at peerlessit.com] *On Behalf Of *Andrew
> *Sent:* Tuesday, February 05, 2008 9:51 AM
> *To:* International OpenROAD Users
> *Subject:* [Openroad-users] BufferText
>
> Hi All,
>
> OR4.1 on WinXp.
>
> Anyone out there displaying a tally or character count of a multiline
> entryfield as a user types?
>
> I have tried using buffertext but when the user starts typing the
> length of the buffertext is one less than what is displayed.
>
> If the user backspaces once then the count goes up by one. If
> backspaces again then the count goes down by one, but the count does
> not represent the actual number of characters displayed in the field.
>
> My field event look like this:
>
> ON KEYDOWN comments =
> declare
> fldobj = fieldobject;
> {
> fldobj = field(comments);
> tally = length(EntryField(fldobj).BufferText);
> }
>
> I have also tried BufferString but get the same behaviour.
> My comments field is a varchar(2000).
>
> Any help would be greatly appreciated.
>
> Regards,
> Andrew.
>
>
> ------------------------------------------------------------------------
> This e-mail and any files transmitted with it may be proprietary and
> are intended solely for the use of the individual or entity to whom
> they are addressed. If you have received this e-mail in error please
> notify the sender. Please note that any views or opinions presented in
> this e-mail are solely those of the author and do not necessarily
> represent those of ITT Corporation. The recipient should check this
> e-mail and any attachments for the presence of viruses. ITT accepts no
> liability for any damage caused by any virus transmitted by this e-mail.
>
>------------------------------------------------------------------------
>
>________________________________________________________________
>OpenROAD-Users mailing list
>
>You can maintain your subscription here:
>http://www.peerlessit.com/mailman/listinfo/openroad-users
>
>To unsubscribe click on this link
>mailto:openroad-users-unsubscribe at peerlessit.com&subject=unsubscribe
>
>To subscribe click on this link
>mailto:openroad-users-subscribe at peerlessit.com&subject=subscribe
>
>------------------------------------------------------------------------
>
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.5.516 / Virus Database: 269.19.19/1258 - Release Date: 4/02/2008 10:10 AM
>
>
More information about the Openroad-users
mailing list