Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Questions about Dynamic Color in Grids
Message
From
02/11/2004 07:39:03
 
 
To
02/11/2004 07:20:30
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MySQL
Miscellaneous
Thread ID:
00956908
Message ID:
00956955
Views:
15
Aaron

I gather from your reply that you just want the ONE date to be highlighted in a different colour, rather than each indiv. date, as you featured the 1st soln. I wrote.

Well, how you get the ldSelected Date is up to you. It could be you ask the user to input a date, on the form, or select it programmatically from one of the dates in the table.

To input a date, create a field, give it InputMask like 99-99-9999 (I'm assuming, as you're in HK your dates would be British?), convert the field to a valid date by
ldSelectedDate = CTOD( yourdatefield)
HTH

Terry

>Thank you for your reply! Terry!
>
>With Thisform.grdYourGrid
> .SetAll( "DynamicBackColor", "IIF( DateField = ldSelectedDate, ;
> RGB( 0, 0, 255), RGB( 255, 255, 255))", "Column")
>Endwith
>
>
>My data like that,
>
>2004/10/1 Pencil
>2004/10/1 Pens
>2004/10/1 Rubber
>2004/10/2 Glue
>2004/10/3 Toy car
>.... and so on
>
>I would like to have same background color for same date... However, how can I set the IdSelecteddate?!
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform