Re: can i find the record number over which my mouse is positioned
- From: "Carsten Bonde" <bonde AT real-inkasso DOT de>
- Date: Wed, 15 Jun 2005 08:29:29 +0200
Pk,
if you are showing the data in a grid, you might take a look at the
AMouseObj()-function.
--
Cheers
Carsten
_______________________________
"Pk" <pk@xxxxxx> schrieb im Newsbeitrag
news:#W$rteTcFHA.3712@xxxxxxxxxxxxxxxxxxxxxxx
> Ok I do have an ID field.
> But still conder the following,
> - 3 records,
> - each record has ID values of , A, B and B
> - Currently record pointer is on record where ID = A
> - When i place my mouse pointer over the 3 record where ID = C
> i want to do something,
> but how do i know that the mouse pointer is over the record where ID = C.
>
> "BlackSabbath" <no.spam@xxxxxxx> wrote in message
> news:opsscz4tv9973osb@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > Le Tue, 14 Jun 2005 16:39:19 +1000, Pk <pk@xxxxxx> a écrit:
> >
> > > Is it possible to get the record number over which my mouse pointer is
> > > located?
> > > Using VFP8.0
> > >
> > >
> > What is the interest of the record number ???
> > It would be better interesting to speak about a specific id field !
> > Do U have one ?
> > assuming the name of this field = ID
> >
> > In a timer interval event
> > oUnderMouse = SYS(1270)
> >
> > IF TYPE("oUnderMouse") = "O" ;
> > AND TYPE("oUnderMouse.parent") = "O" ;
> > AND oSousMouse.parent.parent.class = "Grid")
> > AND oSousMouse.class = "textBox"
> > oGrid = oSousMouse.parent.parent
> > cTable = oGrid.RecordSource && MyTable
> > FOR n = 1 TO oGrid.ColumnCount
> > IF oGrid.Column(n).ControlSource = cTable + ".ID"
> > DO something
> > ENDIF
> > NEXT
> > ENDIF
>
>
.
- References:
- Prev by Date: Re: INSERT INTO command
- Next by Date: Inputmask/Format problem
- Previous by thread: Re: can i find the record number over which my mouse is positioned
- Next by thread: Re: can i find the record number over which my mouse is positioned
- Index(es):
Relevant Pages
|