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:
01686624
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"
>
Thank you very much for your help!
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform