Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Kulwant Singh
  Where is Kulwant Singh?
 Shimla
 India
 Kulwant Singh
 To: Sandy Stephen
  Where is Sandy Stephen?
 Pune
 India
 Sandy Stephen
 Tags
Subject: RE: Caption of Command Button in Grid Row
Thread ID: 248872 Message ID: 248906 # Views: 12 # Ratings: 0
Version: Visual FoxPro 9 Category: Grids
Date: Thursday, December 24, 2009 3:51:37 PM         
   


> >
> > Suppose the command button is placed in Column1 of Grid1
> >
> > In the properties window..
> > select Grid1..column1...DdynamicCurrentControl
> > type..
="thisform.getcaption()"

> >
> > Add a new method to the form ..GetCaption
> > the method should be..
> >
thisform.Grid1.Column1.Command1.caption = STR(RECNO())
> > RETURN 'command1'

> >
> >
> >
> > kulwant
> > (Help Save the TIGER. Save Wildlife. Live & let Live)
>
>
>
> Thanks My Dear
> Cheers
> Sandy

I learnt this from Mr. Tushar. He deserves All the "credit" and "ratings"

I Thank You.. Mr. Tushar!
Kulwant
(Help Save the TIGER. Save Wildlife. Live & let Live)

ENTIRE THREAD

Caption of Command Button in Grid Row Posted by Sandy Stephen @ 12/24/2009 5:33:27 AM
RE: Caption of Command Button in Grid Row Posted by kulwant singh @ 12/24/2009 6:04:57 AM
RE: Caption of Command Button in Grid Row Posted by Sandy Stephen @ 12/24/2009 12:05:23 PM
RE: Caption of Command Button in Grid Row Posted by kulwant singh @ 12/24/2009 3:51:37 PM
RE: Caption of Command Button in Grid Row Posted by tushar @ 12/24/2009 6:04:45 AM
RE: Caption of Command Button in Grid Row Posted by Sandy Stephen @ 12/24/2009 12:05:44 PM