Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yuri Rubinov
  Where is Yuri Rubinov?
 Philadelphia
 Pennsylvania - United States
 Yuri Rubinov
 To: Willem van Oosten
  Where is Willem van Oosten?
 Berkel en Rodenrijs
 Netherlands
 Willem van Oosten
 Tags
Subject: RE: cannot show right caption in command button
Thread ID: 33646 Message ID: 33659 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: Grids
Date: Monday, December 01, 2003 2:47:09 PM         
   


Hard to tell without viewing your code. Try to:

remove ..page6.refresh.

or change the sequence:

thisform.pageframe1.page6.refresh

if empty(vr6.thcode)
...




> I am building an application in which I have a grid and some command buttons on a page,
> the grid shows the records from the parent database
> depending on the contents of a field in a child database vr6 i try to change the caption of a command button from " print formulier A "
> to "print formulier B " I do this by afterrowcolchange event:
>
> if empty(vr6.thcode)
> thisform.pageframe1.page6.command4.caption=" print formulier A "
> else
> thisform.pageframe1.page6.command4.caption=" print formulier B "
> endif
>
> thisform.pageframe1.page6.refresh
>
> The form shows all the right contents of the child databases records, only the caption is always 1 record to late, it shows the right caption for the record I just left.
> Tried to put the code in beforerowcolchange, this did not work either.
>
> I know it is probably a small thing I do wrong, I am very new to OOP, please give me a hand.
>
> Willem
>
>
>
>
>
>
>
>
>
>
>
>
>


ENTIRE THREAD

cannot show right caption in command button Posted by Willem van Oosten @ 12/1/2003 12:18:24 PM
RE: cannot show right caption in command button Posted by Yuri Rubinov @ 12/1/2003 2:47:09 PM
RE: cannot show right caption in command button Posted by Willem van Oosten @ 12/2/2003 9:50:57 AM