Subject Re: Changing value of speedTip
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Thu, 9 Dec 2021 12:42:50 -0800
Newsgroups dbase.getting-started

On 12/9/2021 9:55 AM, Milind Nighojkar wrote:
> 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
> ****************

The speedTip is not a property of the field, it is a property of
individual visual controls.

For the grid, you would have to get pretty specific:

     oForm = this.parent.parent // this = rowset
                                // parent = query
                                // parent = form
     oForm.grid.columns["Column01"].editorControl.speedTip := "Changed
SpeedTip"

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