Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Caption in Commandbutton in grid
Message
From
11/05/1998 01:16:10
Ranjit Londhe
Anglo Eastern Ship Mgmt Ltd.
Mumbai, India
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00098023
Message ID:
00098424
Views:
30
John,
I stand corrected. I guess you are right about this.

Ranjit

>>You can assign recno() as your command buttons caption.
>>Note that this approach will not work if your table (the grid's rowsource) is
>
>Actually, this approach will not work because when the button is instanced, Recno() has a value. And.... that value is applied to the CommandButton. I say THE - because there is only one command button. Try setting sparse to .F. and run the form with the grid. Then, issue code to change the Caption Property of the CommandButton. They all change - because it is only one commandbutton - displayed for each record.
>
>If you just wanted to display a TextBox, or some other bound control that has it would work because of the nature of bound controls.
>
>Therefore, a combination of setting the Value Property of a TextBox to =Recno() and using DynamicCurrentControl() might work. The characteristics of the TextBox can be made to look like a button - gray backgound and so forth. Since the other rows won't be active , it is fairly transparent.
Previous
Reply
Map
View

Click here to load this message in the networking platform