Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting Field Font Properties
Message
De
01/10/1998 08:41:34
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00142486
Message ID:
00142759
Vues:
31
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform