Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Field Font Properties
Message
From
01/10/1998 08:41:34
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00142486
Message ID:
00142759
Views:
30
Kevin:

I don't like the way that VFP handles labels. It's difficult to change the text visually, so I usually set up my lables textboxes with a value of "Sometext". I have a situation where I do a report with 1 of 2 different fields on it. When I build the cursor, I know which field to capture from the table and write to the cursor. However, I need to change the caption at the top of each column to tell the use what the data represents. I use the following code fragment:

use "filename".FRX IN 0
select "filename"

scan for ObjType = 5
with thisform.cboPkgSupplier && control that tells me which caption to use
do case
case .ListIndex = 1
replace "filename".EXPR with '" Caption 1"'
case .ListIndex = 2
replace "filename".EXPR with '" Caption 2"'
endcase
endwith

endscan

use in "filename"

For your situation, you can replace the "filename".fontstyle with either a 0 - normal; 1 - Bold; 2 - Italic (I think).

HTH
Mike
Mike
Previous
Reply
Map
View

Click here to load this message in the networking platform