Subject Re: Changing value of speedTip
From Milind Nighojkar <milinigh@yahoo.com>
Date Thu, 09 Dec 2021 12:55:51 -0500
Newsgroups dbase.getting-started

Hi Ken,

I wrote code as below for a grid. Not able to see the change in speedtip based on the field value

****************
function rowset_onNavigate(type, nRows)
      if this.fields["emp_active"].value = false
         this.CanEdit := false
      else
         this.fields["name"].speedtip = 'Changed Speedtip'
     endif
      return true
****************

Milind Nighojkar


Ken Mayer Wrote:

> On 11/29/2021 10:03 AM, Milind Nighojkar wrote:
> > Scnerio : Based on the value of the data can we dynamically change the speedTip value.
>
> Why not? Just set the property ... entryfield.speedTip = "new value" ...
>
> You might want to do it for various controls if that's the idea in, say,
> the rowset's onNavigate event handler, but there's no reason you can't.
>
> 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