[Openroad-users] BufferText

Andrew andrew at delta-link.com.au
Wed Feb 6 01:50:32 EST 2008


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.peerlessit.com/pipermail/openroad-users/attachments/20080206/439cf30c/attachment.html 


More information about the Openroad-users mailing list