>Hi there,
>
>I have a grid with a column that contains a command-button with a caption dependent on data relating to the corresponding row. There are too many values to contstruct separate buttons (each called via. the DynamicCurrentControl) property, so I was wondering what is the best way to have variable button caption text?
>
>Alternatively, what is the best way to make a textbox look like a command-button? I have set a grey background, arrow pointer and 3d mouse-over effect, but it still doesn't quite look like a normal command button.
>
>Any ideas would be appreciated.
>
>Alan
If you keep caption text in some field you could try something like this:
thisform.Grid1.ColumnWithButton.DynamicBackColor = "thisform.ChangeButtonCaption()"
thisform.Grid1.ColumnWithButton.Button1.Caption = ALLTRIM(Table.Field)
RETURN thisform.Grid1.ColumnWithButton.BackColor
NOT TESTED!
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.