Subject how left() works in dbase 11 plus
From AGOSTINHO <agostinhoteixeira@yahoo.com>
Date Sun, 30 May 2021 21:52:41 -0400
Newsgroups dbase.getting-started

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