How to set a field to bold in a condition
Orionizer
North Carolina
I have the following code in a field on a report:
begin
if [DMMain.TblCustStyleByInv."Description"] <> '' then
DescOut:=[DMMain.TblCustStyleByInv."Description"]
else if [DMMain.TblMillStyleByInv."Description"] <> '' then
DescOut:=[DMMain.TblMillStyleByInv."Description"]
else
DescOut:='*** No Style Description! ***';
end
What I want to happen is this field to be normal text unless the last condition is met, where I would like it to be bold. Is there a way to do this?
begin
if [DMMain.TblCustStyleByInv."Description"] <> '' then
DescOut:=[DMMain.TblCustStyleByInv."Description"]
else if [DMMain.TblMillStyleByInv."Description"] <> '' then
DescOut:=[DMMain.TblMillStyleByInv."Description"]
else
DescOut:='*** No Style Description! ***';
end
What I want to happen is this field to be normal text unless the last condition is met, where I would like it to be bold. Is there a way to do this?
Comments
Assuming
DescOut is the variable used in a memo(textobject)
select the memo then pick the conditional highlight tool
add
DescOut='*** No Style Description! ***'
in the condition field then select what you want from the choices available in the other boxes.
regards
gord