hetturki
asked on
Urgent : Macro subsitution
hi
how can I do the following
example:
i am using quick report , the are 20 QrDbtext ( QrDbtext1,QrDbtext2,QrDbte xt3 ........QrDbtext31 ) on the quick report that represented the days in the month ,
I want if the day of the month in FRIDAY i want to change the color or QrDbtext? ...
like this
ex:
MMon := 11;
Days := 30;
for k := 1 to Days do
begin
xdate := IntToStr(k)+'/'+IntToStr(m mon)+'/'+' 2006';
IF DayOfTheWeek(StrToDate(xda te)) = 5 then
Qreport1.QrDbText.... .Color := clSilver;
end;
best regards
how can I do the following
example:
i am using quick report , the are 20 QrDbtext ( QrDbtext1,QrDbtext2,QrDbte
I want if the day of the month in FRIDAY i want to change the color or QrDbtext? ...
like this
ex:
MMon := 11;
Days := 30;
for k := 1 to Days do
begin
xdate := IntToStr(k)+'/'+IntToStr(m
IF DayOfTheWeek(StrToDate(xda
Qreport1.QrDbText.... .Color := clSilver;
end;
best regards
ASKER
Sorry ! I think you dont understand my quetion
I need the following
Qreport1.QrDbText1.color := clSilver;
Qreport1.QrDbText2.color := clSilver;
..
..
...
...
Qreport1.QrDbText20.color := clSilver;
i want do this with one statement
I need the following
Qreport1.QrDbText1.color := clSilver;
Qreport1.QrDbText2.color := clSilver;
..
..
...
...
Qreport1.QrDbText20.color := clSilver;
i want do this with one statement
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Forced accept.
Computer101
EE Admin
Computer101
EE Admin
dd, mm, yy : word;
dt : tdate;
i : integer;
begin
mm := 11;
dd := 30;
yy := 2006;
for i := 1 to dd do
begin
dd := EncodeDate(yy, mm, dd);
if DayOfTheWeek(StrToDate(xda
// set the color e.g. Qreport1.QrDbText.font.col
end;
end;