Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Size keyword & syntax error
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00863045
Message ID:
00863048
Vues:
19
but fox will let me put this in a prg ??????
Define Class oFont  As Custom
	Size = Ntom(8)
	bold = .F.
	Name = "Tahoma"
	weight = 400

	Procedure Init()
		With This
			.Size = 9
		Endw
	Endproc

Enddefine
this following code is on a form

>I have an active x that has a defaultFont object
>
>you would normally set the like so
>
>
>with .defaultMenuFont
> .name = "Tahoma"
> .Size = 8
> .weight = "bold"
>endw
>
>
>
>but vfp refuses to execute the command with size in it it says syntax error
>
>BUT in the watch window:
>
> .defaultMenuFont.Size      $      9
>
>
>and if i change it in the watch window it changes fine and the font is now a different size ???
>
>
>I even tried to fool it with:
>
>
>EVALUATE( ".defaultMenuFont.Siz" + "e =  7" )
>
>
>no dice....
>
>Anyone dealt with this before ??
>
>TIA
Greg Foote
Software At Work, Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform