I have an input field on a form that uses a barcode font. Works great except
that it right fills with blanks. If there is no data in the field it still
shows a barcode = spaces.

Can you set the input field so it does not show spaces if there is no data
to vue?

TIA

Re: How do you set up a (textbox) so that it does not fill with blanks by Dan

Dan
Tue Aug 01 15:29:08 CDT 2006

You can only do this in a VarChar field which is only available in VFP9.

In prior versions (and in Char fields even in 9), the field is fixed width.
If you don't put anything in there, it's spaces.

You can use TRIM() to remove trailing spaces for output, though.

Dan

Phrank wrote:
> I have an input field on a form that uses a barcode font. Works great
> except that it right fills with blanks. If there is no data in the
> field it still shows a barcode = spaces.
>
> Can you set the input field so it does not show spaces if there is no
> data to vue?
>
> TIA



Re: How do you set up a (textbox) so that it does not fill with blanks by Jack

Jack
Tue Aug 01 15:36:40 CDT 2006

You could use an editbox instead of a textbox. If you have a new
enough version of VFP you could try using the Text property instead of
Value - I think it will contain only what was entered.

On Tue, 1 Aug 2006 11:55:01 -0700, Phrank
<Phrank@discussions.microsoft.com> wrote:

>I have an input field on a form that uses a barcode font. Works great except
>that it right fills with blanks. If there is no data in the field it still
>shows a barcode = spaces.
>
>Can you set the input field so it does not show spaces if there is no data
>to vue?
>
>TIA

Re: How do you set up a (textbox) so that it does not fill with bl by Phrank

Phrank
Tue Aug 01 19:01:02 CDT 2006

That worked great! Thank you very much.

Frank



"Jack Jackson" wrote:

> You could use an editbox instead of a textbox. If you have a new
> enough version of VFP you could try using the Text property instead of
> Value - I think it will contain only what was entered.
>
> On Tue, 1 Aug 2006 11:55:01 -0700, Phrank
> <Phrank@discussions.microsoft.com> wrote:
>
> >I have an input field on a form that uses a barcode font. Works great except
> >that it right fills with blanks. If there is no data in the field it still
> >shows a barcode = spaces.
> >
> >Can you set the input field so it does not show spaces if there is no data
> >to vue?
> >
> >TIA
>