Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids, Buttons, and captions
Message
From
07/03/2003 18:10:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Grids, Buttons, and captions
Miscellaneous
Thread ID:
00763105
Message ID:
00763105
Views:
59
I need to put cmdButtons in a grid. No problem. However, I am having a seriously hard time creating a dynamic caption. Is it possible? For example, I want the button to have an invoice number on it. I have tried a loop
the cmdButton in the only control in column 1

for nRow = 1 to reccount
activatecell(nRow, 1)
cmdButton.caption = cursor.invoice
endfor
...doesn't work.

I added a column, and set the control source to invoice no.
for nRow = 1 to reccount
activatecell(nRow, 1)
cmdButton.caption = column10.text1.value
endfor
...doesn't work.


If only there was a true dynamiccaption property.

DAvid
David
Next
Reply
Map
View

Click here to load this message in the networking platform