Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox in grid dynamically change the caption
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01686606
Message ID:
01686623
Views:
25
>Nothing. Even if I have the code as you show above (thisform.SetCaption), I need to specify inside the function .SetCaption() the code to set the caption. Example, from your code:
>
>thisform.Grid1.ColUMN1.Check1.Caption = ALLTRIM(Test.Fld2)
>
>How does this function "know" the Column#?

It doesn't you hardcoded it.
Or you could pass parameter, but then you should do something like this:
thisform.Grid1.Column1.DynamicBackColor = "thisform.SetCaption(1)"
thisform.Grid1.Column2.DynamicBackColor = "thisform.SetCaption(2)"
...
thisform.Grid1.ColumnN.DynamicBackColor = "thisform.SetCaption(N)"
and the method:
** SetCaption method
LPARAMETERS lnColimnIndex
thisform.Grid1.Columns(m.lnColimnIndex).Caption = "asdasdasdas"
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform