Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Button in Grid ForeColor change
Message
From
06/04/2018 16:34:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Button in Grid ForeColor change
Miscellaneous
Thread ID:
01659197
Message ID:
01659197
Views:
70
Hi,

I have a grid where a column control is a button. The cursor to which this grid is bound has a field that has a name of a file. For example, field name FILE_NAME.
FILE_NAME
"abc.png"
"cbs.png"
"nbc.png"
and so on

I want the button foreground color to be different, depending on if a file name specified in the field FILE_NAME exists or not. For example, red for the records that "point" to a file that does not exist.

How can this be done? In which method of the button control I need to check if a file exists or not?

TIA
"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
Next
Reply
Map
View

Click here to load this message in the networking platform