Subject Re: how left() works in dbase 11 plus
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Sun, 30 May 2021 21:17:11 -0700
Newsgroups dbase.getting-started

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