Re: Typing in the last position of a form field overwrites the last character in the field

"James B. Byrne via Aubit4gl-discuss" <[email protected]> Tue, 15 Jun 2021 16:51:42 -0400
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <[email protected]>

On Tue, June 15, 2021 06:52, Gjerstad, Øyvind via Aubit4gl-discuss wrote:
> For instance when we have a form field of length 3, and after typing "abcd",
> the string now contains "abd". If I continue typing into the field, I will
> continue to overwrite the last character in the field. This in contrast to
> Informix 4gl, which will stop accepting input after the string has reached it
> full length.
>
> the 4gl source:
>
>
> main
>
>   define foo char(4)
>
>
>   open window w_input at 1,1 with form "form"
>
>
>   input foo from f1
>
>   close window w_input
>
>
>   display foo
>
> end main
>
>
> The form (form.per)
>
>
> database formonly
>
> screen size 24 by 80
>
> {
>
> +---------+
>
> | [f1  ]  |     ###<=== Is this a typo in your email?  This f1 field has 4 char.
>
> +---------+
>
> }
>
> end
>
> attributes
>
>   f1 = formonly.f1;
>
> end


-- 
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
   Unencrypted messages have no legal claim to privacy
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:[email protected]
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3