>Hi all
>
>I want to have a grid with a single column containing a commandbutton which displays as caption a different description for each record.
>In other words i would need a sort of dynamicCaption property.
>How can I do ?
>
>I could even set the click property of the textbox but I don't want the user to fall inside the control with the cursor :)
>
>thanks
>Alessio
Change the caption of the button in some of the Grid.Column Dynamic Methods:
thisform.GridWithButton.ColumnWithButton.DynamicFontBold = "thisform.SetButtonCaption()"
DO CASE
CASE Condition1
thisform.GridWithButton.ColumnWithButton.Caption = "Condition1"
CASE Condition2
thisform.GridWithButton.ColumnWithButton.Caption = "Condition2"
...
OTHERWISE
thisform.GridWithButton.ColumnWithButton.Caption = "No Caption at all"
ENDCASE
RETURN .f.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.