Subject Re: how left() works in dbase 11 plus
From Agostinho <Agostinhoteixeira@yahoo.com > <Agostinho <Agostinhoteixeira@yahoo.com >>
Date Mon, 31 May 2021 00:58:55 -0400
Newsgroups dbase.getting-started

Sorry this Subject/massage was resend by mistake


Ken Mayer Wrote:

> On 5/30/2021 6:52 PM, AGOSTINHO wrote:
> > Dear group,
> >
> > If I want to test an user's input in DBASE DOS I do somethng like this
> > ?left(ccode,4)
> >
> > I've tried it in this function but I get an error
> > also need to make sure that the input are numbers only.
> >
> > function ENTRYFIELD4_onKey(nChar, nPosition,bShift,bControl)
> >        form.clients1.params['ag'] = '%'+this.value+'%'
> >        form.clients1.requery()
> >        if form.entryfield1.value.left(4)
> >                    do something
> >       endif
> >       return
>
> You got a response earlier today. Please double check that.
>
> Ken
>
>
> --
> *Ken Mayer*
> Ken's dBASE Page: http://www.goldenstag.net/dbase
> The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
> dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
> dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
> dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm